I want to be able to place each individual word of the string of any size into a vector. This is what I have so far:
vector <string> broken;
while(choice != " "){
int space = choice.find(" ")-1;
string word = choice.substr(0,space);
broken.push_back(word);
choice = choice.substr(space+1);``
cout << choice;
}
Any help would be greatly appreciated!