I just want to add to a string
Tells me I cannot add two pointers. But the thing that confuses me is that it gives me the error message on the last line before returning and not the top line. I thought C++ strings were able to use + to append to them.Code:string Character::toString() { string result = " "; result += getName() + " \n"; result += " " + getClass() + " \n"; result += " " + getHealth() + " \n"; //HERE return result; }