samedi 4 juillet 2015

. or -> as Member Access operator in C++

I am quite new to C++. My earlier programming experience is in Java. As per my earlier knowledge to access members of class we only use '->' but of course that is not true as we can also use '.'(dot notation). Can somebody tell me when is suitable when?

Aucun commentaire:

Enregistrer un commentaire