#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::endl;
string push_back(string str1, string str2)
{
string::iterator iter = str2.begin();
for (; iter != str2.end(); ++iter)
{
str1.push_back(iter);
}
return str1;
}
int main()
{
string str1("Cconnect ");
string str2("String!");
string temp(str1);
cout << "+ or +=: " << str1 + str2 << endl;
cout << "append: " << str1.append(str2) << endl;
str1 = temp;
cout << "push_back: " << push_back(str1, str2) << endl;
cout << "others:insert() or str[] .." << endl;
return 0;
}