remove last letter in string c++ code example Example: remove last letter in string c++ #include <iostream> #include <string> str.resize(str.size() - 1);