Hello,
Now I understand the message, but didn't I declare the function as an member function? Because in the class String a have:
Public:
void set_String(const String &);
So isn't that a member function ?
Thx,
Hy,
I have a litle problem with the folowing code:
String::String(const String & ori){
tekst = NULL;
set_String(ori);
};
void set_String(const String & ori){
//opppassen voor self reference
if ( this != ori )
{
set_String( ori.get_String() );
}
else
{
cout << "ERROR: self...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.