Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. do
  2. {
  3.  
  4. cout<<"1.Win" <<endl;
  5. cout<<"2.Lose" <<endl;
  6. cout<<"3.Remis" <<endl;
  7. cout<<"4.Podsumowanie"<<endl;
  8. cout<<"5.Wyjdz" <<endl;
  9. cin>>winlose1;
  10. switch(winlose1)
  11. {
  12. case 1:
  13. notatnik.open("csgo.txt",ios::out | ios::app);
  14. notatnik<<"win"<<endl;
  15. notatnik.close();
  16. break;
  17. case 2:
  18. notatnik.open("csgo.txt",ios::out | ios::app);
  19. notatnik<<"lose"<<endl;
  20. notatnik.close();
  21. break;
  22. case 3:
  23. notatnik.open("csgo.txt",ios::out | ios::app);
  24. notatnik<<"draw"<<endl;
  25. notatnik.close();
  26. break;
  27. case 4:
  28. break;
  29. case 5:
  30. cout<<"Wychodze";
  31. Sleep(3000);
  32. exit(0);
  33. break;
  34. default:
  35. cout<<"debil"<<endl;
  36. Sleep(2000);
  37. system("cls");
  38. }
  39. system("cls");
  40. }while(winlose1!=4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement