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?Code:cout << applicant2.GetName(); //this is the get method string DateProfile::GetName() { return name; } //this is the set method void DateProfile::SetName(string inClassName) { name = inClassName; } //this is where the set method gets its value applicant2.SetName("Jane");