how to remove last letter from string c++ code example
Example 1: delete last char of string C++
st = myString.substr(0, myString.size()-1);
Example 2: remove last letter in string c++
#include <iostream>
#include <string>
str.resize(str.size() - 1);