Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- cout<<"1.Win" <<endl;
- cout<<"2.Lose" <<endl;
- cout<<"3.Remis" <<endl;
- cout<<"4.Podsumowanie"<<endl;
- cout<<"5.Wyjdz" <<endl;
- cin>>winlose1;
- switch(winlose1)
- {
- case 1:
- notatnik.open("csgo.txt",ios::out | ios::app);
- notatnik<<"win"<<endl;
- notatnik.close();
- break;
- case 2:
- notatnik.open("csgo.txt",ios::out | ios::app);
- notatnik<<"lose"<<endl;
- notatnik.close();
- break;
- case 3:
- notatnik.open("csgo.txt",ios::out | ios::app);
- notatnik<<"draw"<<endl;
- notatnik.close();
- break;
- case 4:
- break;
- case 5:
- cout<<"Wychodze";
- Sleep(3000);
- exit(0);
- break;
- default:
- cout<<"debil"<<endl;
- Sleep(2000);
- system("cls");
- }
- system("cls");
- }while(winlose1!=4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement