Possible Duplicate:
what is the difference between (.) dot operator and (->) arrow in c++
in this book i have I'm learning pointers, and i just got done with the chapter about OOP (spits on ground) anyways its telling me i can use a member selection operator like this ( -> ). it sayd that is is like the "." except points to objects rather than member objects. whats the difference, it looks like it is used the same way...
E1->E2is converted to the equivalent form(*(E1)).E2. In other words,->is just a shortcut for "dereference-and-access".