Advertisement
Guest User

Untitled

a guest
Apr 7th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char choice[256];
  8.  
  9. while (true)
  10. {
  11. cout << "blabla";
  12. cin.getline(choice, 256);
  13.  
  14. if (choice == '1')
  15. {
  16. cout << "Hallå!";
  17. break;
  18. }
  19. else
  20. {
  21. cout << "Ditt val lär vara 1 ehehe." << endl << endl;
  22. }
  23. }
  24. system("PAUSE");
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement