fojtasd

Untitled

Oct 23rd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. int main()
  2. {
  3. long long n;
  4. cout << "Zadej bin: ";
  5. cin >> n;
  6. if (!cin.fail())
  7. {
  8. if (cin.peek() >= '2' && cin.peek() <='9')
  9. {
  10. cout << "hovno" << endl;
  11. }
  12. else
  13. {
  14. cout << convert(n);
  15. }
  16. }
  17. else cout << "Spatny vstup." << endl;
  18.  
  19. return 0;
Advertisement
Add Comment
Please, Sign In to add comment