Answers for "how to get each char of a string in cpp"

C++
0

c++ read each char of string

std::string str = ???;
for(std::string::iterator it = str.begin(); it != str.end(); ++it) {
    do_things_with(*it);
}
Posted by: Guest on November-12-2020

Code answers related to "how to get each char of a string in cpp"

Browse Popular Code Answers by Language