Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

remove last letter in string c++

#include <iostream>
#include <string>
 
str.resize(str.size() - 1);
 
PREVIOUS NEXT
Tagged: #remove #letter #string
ADD COMMENT
Topic
Name
3+6 =