Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

traverse through a string cpp


void print(const std::string &s)
{
    for (std::string::size_type i = 0; i < s.size(); i++) {
        std::cout << s[i] << ' ';
    }
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #traverse #string #cpp
ADD COMMENT
Topic
Name
7+2 =