what does this do in c++?
Quote:Original post by Azune
Also a->b.c->d looks nicer than (*(((*a).b.c)).d, or something like that :\
However, references look nicer still(a.b.c.d), so unless you have a good reason to use pointers (for example, you intend to store them in an array or std::container or the pointer can be NULL) use references.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement