Skip to content

Commit

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

std::getline(std::cin, input);
//cin >> input;
list.push_back(input);
}while( input != "done" );

list.pop_back();

cout << "Your favorite list:\n";
for(int i = 0; i < list.size(); i++){
cout << list.at(i) << endl;
}

return 0;
}
}

0 comments on commit 3cde482

Please sign in to comment.