Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < listing.size(); i += 2)
- {
- string choice;
- if (i == (listing.size()-1))
- winners.push_back(listing[i]);
- else
- {
- cout << listing[i] << " or " << listing[i + 1] << "?\n";
- getline(cin, choice);
- }
- /*while ((choice != listing[i]) || (choice != listing[i + 1]))
- {
- cout << "Invalid Response (" << choice << ") try again.\n";
- getline(cin, choice);
- }*/
- if (choice == listing[i])
- winners.push_back(listing[i]);
- else if (choice == listing[i + 1])
- winners.push_back(listing[i + 1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement