checking the keyboard input?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Collins Jr

    checking the keyboard input?

    How do I check the keyboard input to verify that it is a number and not a character?
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    Look for 'getch()' or 'getchar()' function.
    It will return you the character entered from the keyboard.
    Then check if it number or alphabet.

    Comment

    Working...