#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "abcdefg";
s.erase(2, 1);
cout << s << endl; // "abdefg"
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "abcdefg";
s.erase(2, 1);
cout << s << endl; // "abdefg"
return 0;
}