SyntaxFix
Write A Post
Hire A Developer
Questions
str.erase( str.end()-1 )
Reference: std::string::erase() prototype 2
no c++11 or c++0x needed.