Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. case 2:
  2. {
  3.  
  4. cout<<"Podaj tytul: ";
  5. cin.ignore();
  6. getline(cin, c);
  7.  
  8. while( wsk && wsk -> tytul != c)
  9. {
  10. wsk = wsk -> next;
  11. }
  12. if(wsk->tytul == c)
  13. {
  14. cout<<"Podaj nowy tytul: ";
  15. getline(cin, q);
  16. if (q == "")
  17. cout << "Nic nie zmieniono " << endl;
  18. else
  19. wsk->tytul = q;
  20.  
  21. cout<<"Podaj nowe imie autora: ";
  22. getline(cin, q);
  23. if (q == "")
  24. cout << "Nic nie zmieniono " << endl;
  25. else
  26. wsk->imie_autora = q;
  27.  
  28. cout<<"Podaj nowe nazwisko autora: ";
  29. getline(cin, q);
  30. if (q == "")
  31. cout << "Nic nie zmieniono " << endl;
  32. else
  33. wsk->nazwisko_autora = q;
  34.  
  35.  
  36. cout<<"Podaj nowa kategorie: ";
  37. getline(cin, q);
  38. if (q == "")
  39. cout << "Nic nie zmieniono " << endl;
  40. else
  41. wsk->kategoria = q;
  42. }
  43. else
  44. {
  45. cout<<"\nPodales zly tytul! Sprobuj ponownie! \n";
  46. //edytuj(head);
  47. }
  48. break;
  49. }
  50.  
  51. default:
  52. {
  53. cout<<"\nNie ma takiej opcji w menu! \n";
  54. }
  55.  
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement