Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int choice;
- while (true)
- {
- cout << "blabla";
- cin >> choice;
- cin.ignore();
- if (choice == 1)
- {
- cout << "Hallå!";
- break;
- }
- else
- {
- cout << "Ditt val lär vara 1 ehehe." << endl << endl;
- }
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement