View Single Post
Old Jun 30th, 2005, 7:27 AM   #1
AbalahDoon
Newbie
 
Join Date: Jun 2005
Posts: 2
Rep Power: 0 AbalahDoon is on a distinguished road
newb needs help with classes and char arrays

hey im trying to find out how to write a class, say class name, that stores a name inputed by the user using member function SetName() or something.

i need to be able to prompt the user for a name, use cin>>, the pass that to SetName() to change the name stored in the class (christ i hope that made sense, im a newb so im sorry).

anyway if you can help it would be greatly appreciated, please reply, perhaps give some example code.
or you can msg me on:

aim - cplusplusnewbie
or
msn - danielmcd_5005@hotmail.com
thanks alot
AbalahDoon is offline   Reply With Quote