📜  如何从 C++ 中的字符串中删除子字符串? - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.912000             🧑  作者: Mango

代码示例1
string x = "Iron Man";
x.erase(start,length);
cout << x;
// start represent from which position we try to delete
// length rerensent the length we try to delete from the start position.