Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

remove or erase first and last character of string c++

str.pop_back(); // removes last /back character from str
str.erase(str.begin()); // removes first/front character from str
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #erase #character #string
ADD COMMENT
Topic
Name
5+7 =