c++ for char in string code example
Example 1: c++ read each char of string
std::string str = ???;
for(std::string::iterator it = str.begin(); it != str.end(); ++it) {
do_things_with(*it);
}
Example 2: working with char and string c++
String and Char