Masukkan kembali Innstring

// string::pop_back
#include <iostream>
#include <string>

int main ()
{
  string str ("hello world!");
  str.pop_back();
cout << str << '\n';
  return 0;
}  // ans : hello world
Different Dotterel