Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char choice[256];
- while (true)
- {
- cout << "blabla";
- cin.getline(choice, 256);
- 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