#include<iostream>
using namespace std;
#include<string>
//字符串插入和删除
void test01()
{
string str1 = "hello";
//插入 hlllello
str1.insert(1, "111");
cout << "str1 = " << str1 << endl;
//删除 hello
str1.erase(1, 3);
cout << "str1 = " << str1 << endl;
}
int main()
{
test01();
system("pause");
return 0;
}