Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- cout << "1. Kilepes" << endl;
- cout << "2. Hozzaadas" << endl;
- cout << "3. Modositas" << endl;
- cout << "4. Torles" << endl;
- cout << "Muvelet: ";
- cin >> muv;
- cin.ignore();
- if(muv==1){
- felszabadit(fogo);
- cout << "Viszlat" << endl;
- }
- else if(muv==2){
- string nev="";
- int db = -1;
- cout << "Nev: ";
- getline(cin, nev);
- cout << endl;
- cout << "Mennyiseg: ";
- cin >> db;
- fogo=hozzaad(fogo, nev, db);
- print(fogo);
- }
- else if(muv==3){
- int sorszam = -1;
- cin >> sorszam;
- fogo = torol(fogo, sorszam);
- }
- else if(muv==4){
- int sorszam = -1;
- cin >> sorszam;
- fogo = modosit(fogo, sorszam);
- }
- } while (muv!=1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement