I have been given the task to try and understand a C++ program written by someone else....actually my job is to setup and test the hardware...in order to understand the parameters used in the setup....I need to look at a small program.
Say you have an object foo, and its type has a member named bar. You would access foo's bar by saying foo.bar. Now say you have a pointer p which points to foo. To access the same variable (could be a funtion as well) you say p->bar.