#include <bits/stdc++.h>
using namespace std;
int main()
{
string str("All that exists is what's ahead.");
string a, b;
a = str.insert(4,"sky");
//在下标为4的位置,插入字符串sky
cout << a << endl; //输出All skythat exists is what's ahead.
str = "All that exists is what's ahead.";
b = str.insert(4,5,'x');
//在下标为4的位置,插入字符串5个字符x
cout << b << endl; //输出 All xxxxxthat exists is what's ahead.
return 0;