Remove last character from C++ string

For a non-mutating version:

st = myString.substr(0, myString.size()-1);

Leave a Comment