I refer you to your reference material - you want to look at
constructors - they initialise the members of a class whenever
you create an instance of one.
There are two methods of initialising members - one is covered
here, and the other here. Ignore the stuff about inheritance
for the moment, just look at the syntax for the member initialisation
list in that second one.
Don't want to sound rude, but I'm not on call as a reference,
so only ask questions that you cant answer or about concepts
you cant grasp properly - I won't have the time to teach you
everything you'll need to do this task.



LinkBack URL
About LinkBacks


