Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(true)
- {
- cout<<"Ustawienia:"<<endl;
- cout<<"1.Gracz 1: "<<"znak:"<<znaczek1<<"typ:";
- if (typ1=='C')
- {
- cout<<"czlowiek"<<endl;
- }
- else
- {
- cout<<"komputer"<<endl;
- }
- cout<<"2.Gracz 2: "<<znaczek2<<typ2<<poziom2<<endl;
- cout<<"3.Wroc"<<endl;
- cout<<"Wybierz gracza ktorego chcesz zedytowac: "<<endl;
- cin>>wybor;
- system("cls");
- if (wybor==1)
- {
- while(true)
- {
- cout<<"Zmien parametry gracza 1: "<<endl;
- cout<<"1.Znak: "<<znaczek1<<endl;
- cout<<"2.Typ: "<<typ1<<"poziom: "<<poziom1<<endl;
- cout<<"3.Wroc"<<endl;
- cout<<"co chcesz zmienic?"<<endl;
- cin>>wybor;
- while(true)
- {
- if (wybor==1)
- {
- cout<<"Wybierz znak:"<<endl;
- cin>>znaczek1;
- znak=znaczek1;
- system("cls");
- }
- else if (wybor==2)
- {
- cout<<"Wybierz gracza: 1.Czlowiek 2.Komputer:"<<endl;
- cin>>zawodnik1;
- system("cls");
- if(zawodnik1==1)
- {
- typ1='C';
- }
- else if (zawodnik1==2)
- {
- typ1='K';
- cout<<"Wybierz poziom: 1.Latwy 2.Trudny"<<endl;
- cin>>poziom1;
- system("cls");
- if (poziom1==1)
- {
- poziom1='L';
- cout<<"wybrano poziom łatwy";
- }
- else if (poziom1==2)
- {
- poziom1='T';
- }
- }
- }
- else if (wybor==3)
- {
- break;
- }
- }
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement