what does this do in c++?

Started by
10 comments, last by Nitage 18 years, 10 months ago
Also a->b.c->d looks nicer than (*(((*a).b.c)).d, or something like that :\
Advertisement
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