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.
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.
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.