Single Character Input.

This is a discussion on Single Character Input. within the C++ Programming forums, part of the General Programming Boards category; Hi, I am currently programming my project in C and use the getc( stdin ); command to take single character ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    45

    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,
    mintsmike

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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, 05:25 PM
  4. single key input
    By SPiRiToFCaT in forum C++ Programming
    Replies: 14
    Last Post: 11-15-2002, 01:23 PM
  5. Reading single character in linux
    By aurumice in forum Linux Programming
    Replies: 4
    Last Post: 03-03-2002, 12:21 PM

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