pop off end of string c 2b 2b

Solutions on MaxInterview for pop off end of string c 2b 2b by the best coders in the world

showing results for - "pop off end of string c 2b 2b"
Hortense
03 May 2016
1#include <string>
2
3int main() {
4 std::string str = "Hello, World!";
5 str.pop_back(); // str is now "Hello, World"
6}