Skip to content

Commit

Permalink
added multiword functionality, resolves ChicoState#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloo32 committed Sep 25, 2024
1 parent fc7e124 commit 96f9d38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ int main(){
else{
cout << "What is your next favorite?\n";
}
cin >> input;
list.push_back(input);

getline(cin, input);
if (input != "done") {
list.push_back(input);
}
}while( input != "done" );

cout << "Your favorite list:\n";
Expand Down

0 comments on commit 96f9d38

Please sign in to comment.