Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

pop back innstring

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

int main ()
{
  string str ("hello world!");
  str.pop_back();
cout << str << '
';
  return 0;
}  // ans : hello world
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #pop #innstring
ADD COMMENT
Topic
Name
1+2 =