Ok here is my question. I wrote a very simple program and I was wondering if there is a function that will not accept a letter as a value.
here is the code.

#include <iostream.h>
int main() {
int x;
cout << " Please enter a number : " ;
cin >> x;

if (x>10)
cout << x << " is larger than 10.";
else if(x<10)
cout << x << " is smaller than 10:";
else if(x==0)
cout <<x << " Is equal to 10";
else
cout << " You have entered an invalid character.";
return 0;
}
Now when I enter a letter or a character it translates it to a number and compares it to 10. Anybody knows if there is a function that wont allow this to happen?
thank you mucho.