Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. int sprawdzWybor()
  2. {
  3.     char wybor;
  4.     do
  5.     {
  6.         wybor = getch();
  7.     } while(wybor < 49 || wybor > 53);
  8.     cout << wybor << endl;
  9.     return static_cast<int>(wybor - 48);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement