Possible Duplicate:
Splitting a string in C++
How do I read a bunch of words separated by spaces into an array?
Say I have this sentence:
"I like frogs"
And this array:
string mySentenceArray[2]
I would like to make
mySentenceArray[0] = I
mySentenceArray[1] = like
mySentenceArray[2] = frogs
Just as an example. (Please no one tell me to hard code the sentence I just wrote, it's an example.)