Answers for "how to create a new string in c++ by 1st and last character"

C++
0

get first and last character of string c++

auto first_char = str.front()
auto last_char = str.back()
Posted by: Guest on September-15-2020

Code answers related to "how to create a new string in c++ by 1st and last character"

Browse Popular Code Answers by Language