A
av
i have my little string class, now i want do define something like
this [ char *n="terza";
sstring a;
a= "prima " + "seconda " + n; ]
but for doing it i have to write
sstream& operator+(char* a, char* b){}
but compiler say something like
"operator+(char*, char*) must be a member function or have a parameter
of class type"
how can i write a class type "string" that allow to write
a= "prima " + "seconda " + n; above
thank you
this [ char *n="terza";
sstring a;
a= "prima " + "seconda " + n; ]
but for doing it i have to write
sstream& operator+(char* a, char* b){}
but compiler say something like
"operator+(char*, char*) must be a member function or have a parameter
of class type"
how can i write a class type "string" that allow to write
a= "prima " + "seconda " + n; above
thank you