Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- long long n;
- cout << "Zadej bin: ";
- cin >> n;
- if (!cin.fail())
- {
- if (cin.peek() >= '2' && cin.peek() <='9')
- {
- cout << "hovno" << endl;
- }
- else
- {
- cout << convert(n);
- }
- }
- else cout << "Spatny vstup." << endl;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment