全是重载,很简单的,自己动手写下就会有感受的,这样编程能力才能上去,给你说下需要实现的函数吧;
cin>>s1>>s2; ifstream & operator >>(ifstream &in,String &s);
s3=s1+s2; friend String operator +(String a,String b);
s1>s2 bool operator >(String s2);
s3.find(s4) String find(String findstr);运用strstr()函数
这里有答案了。符合你的程序要求
http://zhidao.baidu.com/question/119312332.html?fr=qrl&cid=866&index=1&fr2=query
你到底想说什么啊