Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. case 2:
  2. cout<<"Podaj login uzytkownika, ktorego chcesz edytowac: ";
  3. cin>>login;
  4. for(vector<Uzytkownik*>::iterator it1 = a->user.begin(); it1 != a->user.end(); it1++)
  5. {
  6. if((*it1)->login == login)
  7. {
  8. for (;;)
  9. {
  10. cout<<"======================"<<endl;
  11. cout<<"EDYTOWANIE UZYTKOWNIKA:"<<endl;
  12. cout<<"======================\n\n"<<endl;
  13. int pick=0;
  14. cout<<"MENU:\n[0}Wyjscie z edycji.\n[1]Zmiana loginu.\n[2]Zmiana imienia.\n[3]Zmiana nazwiska.\n\n"<<endl;
  15. cin>>pick;
  16. if(pick!=0) {
  17. switch (pick) {
  18. case 1:
  19. cout << "ZMIANA LOGINU.\nPodaj nowy login: " << endl;
  20. cin>>login;
  21. (*it1)->login=login;
  22. break;
  23. case 2:
  24. cout << "ZMIANA IMIENIA\nPodaj nowe imie: " << endl;
  25. cin>>name;
  26. (*it1)->name=name;
  27. break;
  28. case 3:
  29. cout << "ZMIANA NAZWISKA.\nPodaj nowe nazwisko: " << endl;
  30. cin>>surname;
  31. (*it1)->surname=surname;
  32. break;
  33. default:
  34. if (pick == 0)
  35. break;
  36. }
  37. }else
  38. {
  39. break;
  40. }
  41. }
  42.  
  43. }
  44.  
  45. }
  46. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement