Possible Duplicate:
How to split a string in C++?
C++ split string
How I can split a line, shown below, in C++ from a file?
I want to save the result of game output that has the following format:
CFC 1 - 0 RES
I have four variables:
string team1;
string team2;
int goalst1;
int goalst2;
How can I split the string so that each corresponding part is in the above four variables?
1 Answer