Thread: Single Character Input.

  1. #1
    Registered User
    Join Date
    Mar 2009

    Single Character Input.

    Hi, I am currently programming my project in C and use the getc( stdin ); command to take single character input. Is there any way that I can do this in C++. Or is there an equivalent command.

    Thanks in advance,

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Not in the standard. If you look in the FAQ for "How do I read input wihtout waiting for enter" it will show you some non-standard methods for doing this.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 07-14-2009, 08:17 AM
  2. Verifying single digit input
    By Syked4 in forum C Programming
    Replies: 8
    Last Post: 05-31-2005, 07:11 PM
  3. Printing single character from a string
    By TJJ in forum C Programming
    Replies: 4
    Last Post: 11-05-2003, 06:25 PM
  4. single key input
    By SPiRiToFCaT in forum C++ Programming
    Replies: 14
    Last Post: 11-15-2002, 02:23 PM
  5. Reading single character in linux
    By aurumice in forum Linux Programming
    Replies: 4
    Last Post: 03-03-2002, 01:21 PM