Thread: c++ concepts
View Single Post
  #2 (permalink)  
Old April 10th, 2005, 11:45 PM
Alan-LB Alan-LB is offline
Authorized User
Join Date: Mar 2005
Location: Wagga Wagga, NSW, Australia.
Posts: 60
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB


SampleClass object creates an object of "SampleClass" type
SampleClass *object creates a POINTER to an object of "SampleClass" type

object.somefunction() accesses "somefunction" within the object "object"
object->somefunction() dereferences a pointer to "object" to access "somefunction"

For you I think the "journey of a thousand miles" should start with the "first step" of carefully reading a few basic text books :-)

Read up on Objects and Pointers

Hope this helps


Reply With Quote