void push_back (char c);//在string的结尾放置一个字符
#include <iostream>#include <string>
using namespace std;
int main(){ string str("hello world"); str.push_back('!'); cout << str << endl; return 0;}