Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 2:
- {
- cout<<"Podaj tytul: ";
- cin.ignore();
- getline(cin, c);
- while( wsk && wsk -> tytul != c)
- {
- wsk = wsk -> next;
- }
- if(wsk->tytul == c)
- {
- cout<<"Podaj nowy tytul: ";
- getline(cin, q);
- if (q == "")
- cout << "Nic nie zmieniono " << endl;
- else
- wsk->tytul = q;
- cout<<"Podaj nowe imie autora: ";
- getline(cin, q);
- if (q == "")
- cout << "Nic nie zmieniono " << endl;
- else
- wsk->imie_autora = q;
- cout<<"Podaj nowe nazwisko autora: ";
- getline(cin, q);
- if (q == "")
- cout << "Nic nie zmieniono " << endl;
- else
- wsk->nazwisko_autora = q;
- cout<<"Podaj nowa kategorie: ";
- getline(cin, q);
- if (q == "")
- cout << "Nic nie zmieniono " << endl;
- else
- wsk->kategoria = q;
- }
- else
- {
- cout<<"\nPodales zly tytul! Sprobuj ponownie! \n";
- //edytuj(head);
- }
- break;
- }
- default:
- {
- cout<<"\nNie ma takiej opcji w menu! \n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement