Thread: Getch() echo

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    14

    Getch() echo

    Hello, I wrote a program that uses many getches to receive user input, and it works fine on my computer. But the problem is that when someone else tries it, the getch seems to echo the input at the next prompt. The only correlation is that I am using Windows XP, and they are both using 98. I am using getch() and not getche(), so I don't know why it would echo the character.

    Any help would be appreciated.

    Thanks!

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Question Weird, but...

    Maybe it's your compiler... 'cause neither of these functions are part of the ANSI/ISO C++ standard. If fact, conio.h is not standard.

    [EDIT]
    I don't think there is any standard-portable way to do this, because ALL of the standard input methods require the user to hit RETURN to accept the input.

    I would have expected XP and 98 to behave the same.
    Last edited by DougDbug; 08-09-2003 at 12:23 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Pls repair my basketball program
    By death_messiah12 in forum C++ Programming
    Replies: 10
    Last Post: 12-11-2006, 05:15 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  4. A breakthrough
    By loopy in forum Linux Programming
    Replies: 4
    Last Post: 11-26-2003, 06:46 PM
  5. C-Shell Scripting.. Help!
    By denizengt in forum Tech Board
    Replies: 3
    Last Post: 10-29-2003, 01:37 PM