On Sat, 27 Nov 2004 19:18:42 +0800, "Shugong Wang" <wa****@lzb.ac.cn>
wrote:
getch() function is not a standard C/C++ function. Thought gcc provieds
ncurses.h and a getch() function is realized, I still want to know how to
realize a getch() function in standard c or c++.
There is no standard way of doing this in C or C++. The only proper method
is to use is third-party libraries, such as ncurses or pdcurses.
You might be able to use getchar(), or retrieve a character from cin, but
that's about it for the standard.