You declared the insertion operator as global (
friend
function of
String
class) and then defined as
String
member. Change from
Quote:
ostream& String::operator<<(ostream& stream,const String& str){
to
ostream& operator<<(ostream& stream,const String& str){