string类运算符如下
#include<iostream>
#include<string>
using namespace std;
int main()
{
string str1 = "ABC";
string str2("dfdf");
string str3 = str1 + str2;
cout << "str1=" << str1 << endl;
cout << "str2=" << str2 << endl;
cout << "str3=" << str3 << endl;
str2 += str2;
str3 += "dfdf";
cout << "str2=" << str2 << endl;
cout << "str3=" << str3 << endl;
return 0;
}