I am being asked to create a class called Person with 3 private members.
Then I'm being asked to create Accessors to Mutators for each field.
I don't understand what they actually mean by Accessors to Mutators.
I know Accessors are get value functions and Mutators are setter functions.
Any hints as to what it might be asking me to do?
I have to create a .cpp program that will access the person class and implement in in 3 ways as a .h, .cpp and whole code .cpp.
The problem I am having is that I don't think I'm allow to have a 'string function' and if this is true, how am I supposed to called first name and last name since it can only be a string?
Something like char name[81]; You can't exactly return arrays though you'd have to return a pointer to the array. Then for your setter either use strcpy or write your own version ( pretty easy ).