cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Difference between -> and point
Difference between -> and point
Jul 28, 2010 at 6:14pm UTC
rfretel
(1)
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 UTC
Athar
(4466)
. 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.