By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

checking the keyboard input?

P: n/a
How do I check the keyboard input to verify that it is a number and not a character?
Oct 6 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 542
Look for 'getch()' or 'getchar()' function.
It will return you the character entered from the keyboard.
Then check if it number or alphabet.
Oct 7 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.