Well you have a couple of options to choose from:
1. Use the
strtok/wcstok[
^] functions. You can aplay them to strings by calling c_str, but it is a bit of a pain really.
2. You can get yourself a tokenizer written for strings like this one here at CP
C++ String Toolkit (StrTk) Tokenizer[
^]. I just picked this one at random - haven't used it so you will have to give it a go and see if you like it. If not - you can always use the article to help you create your own solution.
3. You can use the Boost tokenizer. This is pretty close to the 2nd solution, but, you know, Boost :)
Boost::Tokenizer[
^]
Having said all of that I have to admit I only use the first approach. It has grown on me over the years I guess :) Best of luck to you!