Advertisement
Guest User

asddfsdfsd

a guest
Jan 28th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. cout << "Zapisac do pliku? ";
  2. char wybor;
  3. cin >> wybor;
  4. if (wybor == 't' || wybor == 'T') {
  5. cout << "zapisano" << endl;
  6. return true;
  7. }
  8. else if (wybor == 'n' || wybor == 'N') {
  9. cout << "nie zapisano" << endl;
  10. return false;
  11. }
  12. else{
  13. do {
  14. cout << "zle";
  15. cin >> wybor;
  16. } while (wybor != 't' && wybor != 'n' && wybor != 'T' && wybor != 'N');
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement