Possible Duplicates:
C++ split string
How do I tokenize a string in C++?
I'd like to parse a single line of text, which consist of several words separated by blanks. so I need to know the C++ way of split a string by a certain separator. an example line is like below:
aa bb cc dd
which means one ore more than one blanks are used as separator in each line of the configuration file. so could any of you can provide some working code to solve my problem? thanks in advance.