Hi!
I have another overloading operator problem.
I want to use my String class with type char.
Example:
String temp = "";
char z = 'a';
temp += z;
.hpp file
.cpp fileCode:String &operator+=(const char &character);
How can I make it work?Code:String &String::operator+=(const char &character) {
String newString = *this + character;
setString(newString);
return *this;
}