Getch(), Putch(), and Kbhit()
Posted on 1997-09-21
I have successfully run a Turbo C++ program from Greg Perry's book "Turbo C++ By Example" called "The Mailing List Application." It can be found in Appendix F. It includes this function at the end:
ans = getch();
When I try to run the same program in Microsoft Visual C++,
in console mode, of course, I get messages saying that getch, putch, and kbhit are undeclared identifiers and that the terms do not evaluate to functions.
I guess that means that the terms are compiler-specific functions for Borland's product.
My question: What does Microsoft have that I can use to replace them? I'm a beginner and don't know MFC at all.