Discussion:
A3Q3 - Preferred way to iterate through a string in c++
(too old to reply)
Alex Walter
2011-06-13 04:20:56 UTC
Permalink
What is the best way to iterate through a string character by character
in c++? Should I use stringstream, stringbuf, an iterator, a basic for
loop, or is there some other method?
kun qian
2011-06-13 04:45:04 UTC
Permalink
Post by Alex Walter
What is the best way to iterate through a string character by character
in c++? Should I use stringstream, stringbuf, an iterator, a basic for
loop, or is there some other method?
sstringstream is the most commonly use function to manipulate string
in C++.

Loading...