Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. do
  2.     {
  3.         cout << "1. Kilepes" << endl;
  4.         cout << "2. Hozzaadas" << endl;
  5.         cout << "3. Modositas" << endl;
  6.         cout << "4. Torles" << endl;
  7.         cout << "Muvelet: ";
  8.         cin >> muv;
  9.         cin.ignore();
  10.         if(muv==1){
  11.             felszabadit(fogo);
  12.             cout << "Viszlat" << endl;
  13.         }
  14.         else if(muv==2){
  15.             string nev="";
  16.             int db = -1;
  17.             cout << "Nev: ";
  18.             getline(cin, nev);
  19.             cout << endl;
  20.             cout << "Mennyiseg: ";
  21.             cin >> db;
  22.             fogo=hozzaad(fogo, nev, db);
  23.             print(fogo);
  24.         }
  25.         else if(muv==3){
  26.             int sorszam = -1;
  27.             cin >> sorszam;
  28.             fogo = torol(fogo, sorszam);
  29.         }
  30.         else if(muv==4){
  31.             int sorszam = -1;
  32.             cin >> sorszam;
  33.             fogo = modosit(fogo, sorszam);
  34.         }
  35.  
  36.     } while (muv!=1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement