Difference between -> and point

Jul 28, 2010 at 6:14pm
Please if someone can tell me the difference of use -> and use a . (point)
Also what happend when I use :: in my code.

Thank you!
Jul 28, 2010 at 6:28pm
. is used to access a member of an object.
-> dereferences a pointer and then accesses a member of the pointed-to object (i.e. it's short for *(object).member).
:: is the scope resolution operator.
Topic archived. No new replies allowed.