Possible Duplicate:
What is the arrow operator (->) synonym for in C++?
I just have a very basic question. Couldn’t search it on google… I don’t know what -> is and what it does in c++, for example:
render = Surface->Logic->Scale;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In C++
->has 2 contexts:It dereferences the pointer, so basically it brings to memory location where the variable is stored at certain offset. Thus,
is equivalent to,
With respect to object, you can mock this operator by overloading it as,
Usage will be,