Limiting input

This is a discussion on Limiting input within the C++ Programming forums, part of the General Programming Boards category; So I am working on a task on Win32 Console Application. When taking in a character input to determine which ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Limiting input

    So I am working on a task on Win32 Console Application. When taking in a character input to determine which menu opens up next, is it possible to limit the input to only one keypress.

    eg.

    TEMP AGENCY

    MAIN MENU

    1 ADD NEW TEMP
    2 DELETE TEMP
    3 LIST TEMPS

    0 EXIT

    PLEASE ENTER CHOICE:

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. input redirection
    By sashaKap in forum C Programming
    Replies: 6
    Last Post: 06-25-2009, 01:59 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 12:22 AM
  4. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  5. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 11:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21