Advertisement
Guest User

jjjj

a guest
Nov 27th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.88 KB | None | 0 0
  1. while(true)
  2.             {
  3.                 cout<<"Ustawienia:"<<endl;
  4.                 cout<<"1.Gracz 1: "<<"znak:"<<znaczek1<<"typ:";
  5.                 if (typ1=='C')
  6.                 {
  7.                     cout<<"czlowiek"<<endl;
  8.                 }
  9.                 else
  10.                 {
  11.                     cout<<"komputer"<<endl;
  12.                 }
  13.                 cout<<"2.Gracz 2: "<<znaczek2<<typ2<<poziom2<<endl;
  14.                 cout<<"3.Wroc"<<endl;
  15.                 cout<<"Wybierz gracza ktorego chcesz zedytowac: "<<endl;
  16.                 cin>>wybor;
  17.                 system("cls");
  18.                 if (wybor==1)
  19.                 {
  20.                     while(true)
  21.                     {
  22.                         cout<<"Zmien parametry gracza 1: "<<endl;
  23.                         cout<<"1.Znak: "<<znaczek1<<endl;
  24.                         cout<<"2.Typ: "<<typ1<<"poziom: "<<poziom1<<endl;
  25.                         cout<<"3.Wroc"<<endl;
  26.                         cout<<"co chcesz zmienic?"<<endl;
  27.                         cin>>wybor;
  28.                         while(true)
  29.                         {
  30.                             if (wybor==1)
  31.                             {
  32.                                 cout<<"Wybierz znak:"<<endl;
  33.                                 cin>>znaczek1;
  34.                                 znak=znaczek1;
  35.                                 system("cls");
  36.                             }
  37.                             else if (wybor==2)
  38.                             {
  39.                                 cout<<"Wybierz gracza: 1.Czlowiek 2.Komputer:"<<endl;
  40.                                 cin>>zawodnik1;
  41.                                 system("cls");
  42.                                 if(zawodnik1==1)
  43.                                 {
  44.                                     typ1='C';
  45.  
  46.                                 }
  47.                                 else if (zawodnik1==2)
  48.                                 {
  49.                                     typ1='K';
  50.                                     cout<<"Wybierz poziom: 1.Latwy  2.Trudny"<<endl;
  51.                                     cin>>poziom1;
  52.                                     system("cls");
  53.                                     if (poziom1==1)
  54.                                     {
  55.                                         poziom1='L';
  56.                                         cout<<"wybrano poziom łatwy";
  57.                                     }
  58.                                     else if (poziom1==2)
  59.                                     {
  60.                                         poziom1='T';
  61.                                     }
  62.  
  63.                                 }
  64.  
  65.                             }
  66.                             else if (wybor==3)
  67.                             {
  68.                                 break;
  69.                             }
  70.  
  71.                         }
  72.                       break;
  73.                     }
  74.  
  75.  
  76.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement