|
-
December 1st, 2010, 09:12 AM
#5
Re: Using getter and setter in Class
I've tried cout << = *mp->name;
cout writes data to the terminal window, so that has nothing to do with what you want.
A class and a struct are almost the same thing, so you can add get and set functions to your struct the same way you did in the CPayRoll class.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|