I have string
str="1Apple2Banana3Cat4Dog";
How to parse this string into
Apple
Banana
Cat
Dog
I used stringstream for this as below, but not worked
stringstream ss(str);
int i;
while(ss>>i)
{
ss>>s;
cout<<s<<endl;
}
the output is:
Apple2Banana3Cat4Dog
which is not the expected, any one help?
