I want to take information between commas from a big string and copy bits of information to smaller strings
e.g.
string x1("cow,dog,sheep,horse,goat,snake,pig,rooster,ant"
I need to put cow into string x2, sheep into string x3 etc.
So esentially i want to read info between the commas.
Then when i have finished with the values in x2 and x3 i want to replace them with other values, say snake and rooster.
Any ideas people???
e.g.
string x1("cow,dog,sheep,horse,goat,snake,pig,rooster,ant"
I need to put cow into string x2, sheep into string x3 etc.
So esentially i want to read info between the commas.
Then when i have finished with the values in x2 and x3 i want to replace them with other values, say snake and rooster.
Any ideas people???