how to take out last charcter of a string c++ code example
Example 1: remove last character from string c++
st = myString.substr(0, myString.size()-1);
Example 2: how to find last character of string in c++
String[strlen(String) - 1];
st = myString.substr(0, myString.size()-1);
String[strlen(String) - 1];