Answers for "remove 1st char of a string c++"

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 "remove 1st char of a string c++"

Code answers related to "Javascript"

Browse Popular Code Answers by Language