Thread: check individual characters on input

  1. #1

    Unhappy check individual characters on input

    Im a bit stuck on this one, wondered if anyone could help.

    I need to perform initial validation of some data entries, on an immidiate character by character basis rather than waiting for an entire line to input then pressing enter.

    When the characters have been verified they are then echoed to the screen, but only characters that have been verified.

    any ideas anyone??

  2. #2


    Its me again if this isnt clear ill try to explain erm.....

    if i use
    gets(example) i cant evaluate each character untill i have pressed return, then i can do so in the array. I need to be able to evaluate a character as soon as its pressed on the keyboard.

    any ideas, im really stuck.

  3. #3


    its ok im dumb, ive finally found out getch such a dubass or what? i should read more often!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. allegro issues
    By mramazing in forum C++ Programming
    Replies: 1
    Last Post: 01-07-2009, 11:56 PM
  2. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  3. h/w help
    By helpme in forum C Programming
    Replies: 20
    Last Post: 10-21-2003, 09:36 AM
  4. check for bad input
    By tcs122499 in forum C++ Programming
    Replies: 9
    Last Post: 01-28-2003, 05:12 PM
  5. How to error check that input is int or something else
    By sameintheend01 in forum C++ Programming
    Replies: 1
    Last Post: 01-17-2003, 03:04 AM