-
Posts
1443 -
Joined
Sarah's Achievements
Single Status Update
-
It is, that's why I said more or less. If you have a pointer to an object, such as c in this case, then use the '->' operator to access a member of that class. Otherwise use '.'
In other words a->b uses the member by pointer operator while a.b uses the member operator.
There are a few tricky situations where you'll have some troubles, but I doubt you'll find those for quite a while.