Re: OT: Stupid c++
Ah, the joys of dereferencing.
. is used to access members of an object.
-> is used to access members of an object when you have a pointer to that object.
If you have:
object* MyObjectPtr = new object();
then you have to access members via:
MyObjectPtr->member();
Whereas if you have just:
object MyObject;
you use:
MyObject.member();
|