Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "Zapisac do pliku? ";
- char wybor;
- cin >> wybor;
- if (wybor == 't' || wybor == 'T') {
- cout << "zapisano" << endl;
- return true;
- }
- else if (wybor == 'n' || wybor == 'N') {
- cout << "nie zapisano" << endl;
- return false;
- }
- else{
- do {
- cout << "zle";
- cin >> wybor;
- } while (wybor != 't' && wybor != 'n' && wybor != 'T' && wybor != 'N');
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement