Miscellany
public text v1 · immutable#include <string>
using namespace std;
int
main ()
{
string astring="Hello Welt.";
astring.erase(0, 6); // now astring is "Welt"
return 0;
}
#include <string>
using namespace std;
int
main ()
{
string astring="Hello Welt.";
astring.erase(0, 6); // now astring is "Welt"
return 0;
}