Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ read each char of string

std::string str = ???;
for(std::string::iterator it = str.begin(); it != str.end(); ++it) {
    do_things_with(*it);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #char #string
ADD COMMENT
Topic
Name
8+3 =