0 Members and 1 Guest are viewing this topic.
std::string &remove_last_char(std::string &text){ text.erase(text.size() - 1, 1); return text;} EDIT: Looks like Jesper beat me to it!
http://www.cplusplus.com/reference/string/string/erase/