Answers for "std::string remove first character"

7

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
Posted by: Guest on September-16-2020
17

how to remove first letter of a string

s = "hello"
print s[1:]
Posted by: Guest on August-05-2020

Code answers related to "std::string remove first character"

Code answers related to "Javascript"

Browse Popular Code Answers by Language