Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 2:
- cout<<"Podaj login uzytkownika, ktorego chcesz edytowac: ";
- cin>>login;
- for(vector<Uzytkownik*>::iterator it1 = a->user.begin(); it1 != a->user.end(); it1++)
- {
- if((*it1)->login == login)
- {
- for (;;)
- {
- cout<<"======================"<<endl;
- cout<<"EDYTOWANIE UZYTKOWNIKA:"<<endl;
- cout<<"======================\n\n"<<endl;
- int pick=0;
- cout<<"MENU:\n[0}Wyjscie z edycji.\n[1]Zmiana loginu.\n[2]Zmiana imienia.\n[3]Zmiana nazwiska.\n\n"<<endl;
- cin>>pick;
- if(pick!=0) {
- switch (pick) {
- case 1:
- cout << "ZMIANA LOGINU.\nPodaj nowy login: " << endl;
- cin>>login;
- (*it1)->login=login;
- break;
- case 2:
- cout << "ZMIANA IMIENIA\nPodaj nowe imie: " << endl;
- cin>>name;
- (*it1)->name=name;
- break;
- case 3:
- cout << "ZMIANA NAZWISKA.\nPodaj nowe nazwisko: " << endl;
- cin>>surname;
- (*it1)->surname=surname;
- break;
- default:
- if (pick == 0)
- break;
- }
- }else
- {
- break;
- }
- }
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement