Thom said:
I know I'm new at this so maybe I missed the bigger question.....but I use
getche() and getch() fairly frequently.
getch() does not echo characters to the screen while getche() does.
Maybe I'm seeing something that is OS or compiler specific? Interesting.
Yes, those are platform specific, and mixing in calls like that with
stdio or iostreams creates problems of its own. Platform specific
"console" operations usually have their own internal buffers, or no
buffers, and have no access to stdio or iostreams. Sometimes the
behavior is different in annoying ways. At least one favorite console
application I use has something like 'getch' in a loop, and ends up
consuming 100% CPU for I/O polling.
Just be prepared for surprises if you start using a platform's console
operations, especially mixing them with iostreams.