plz guide me i m having some error at line 28
#include <iostream>
using namespace std;
class str
{
char s[30];
public:
str()
{
strcpy(s,"");
}
string getstring()
{
cout<<"enter the sting:";
cin>>s;
return s;
}
void displaystring()
{
cout <<"the string is:"<<s<<endl;
}
string operator+= (string &t)
{
strcat(s,s.t);
return s;
}
};
main()
{
str string1;
str string2;
string1.getstring();
string2.getstring();
string1+=string2;
string1.displaystring();
}