class methods to cout stream
I have a class method that outputs a string to cout and am getting an error message for it, Im having trouble finding info on how (or if) class methods can output strings to cout.
So what is going wrong?
cout << applicant2.GetName();
//this is the get method
//this is the set method
void DateProfile::SetName(string inClassName)
name = inClassName;
//this is where the set method gets its value