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.