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
What does '->' do?
What does '->' do?
Sep 9, 2015 at 6:39am UTC
rush2112
(10)
Quick question:
What does -> do?
eg.
1
2
3
4
if
(tool[i]-> rc != 0) { .... }
Thanks,
(Search on here brings up nothing!)
Last edited on
Sep 9, 2015 at 6:40am UTC
Sep 9, 2015 at 6:46am UTC
MiiNiPaa
(8886)
It is pointer member accesss.
foo->bar
is equivalent to
(*foo).bar
http://en.cppreference.com/w/cpp/language/operator_member_access
Topic archived. No new replies allowed.