Skip to content

Commit

Permalink
Added getline and handles trailing done, Resolves ChicoState#2
Browse files Browse the repository at this point in the history
  • Loading branch information
CharcoalNuggets committed Sep 25, 2024
1 parent e57141d commit 15e9126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main(){
else{
cout << "What is your next favorite?\n";
}
cin >> std::getline(input);
std::getline(input);
list.push_back(input);
}while( input != "done" );

Expand Down

0 comments on commit 15e9126

Please sign in to comment.