So I'm trying to parse an unknown amount of strings from user input in C++ and want to store them in a vector.
I have no idea what to do.
So so say the user enters this: Money Linux fire Computers
I want to be able to take each word and store it into a vector. I originally had something that looked like this, but it failed horribly:
while(in!="")
{
cin>>in;
input.push_back(in);
}
Any pointers to where I should start?