|
I believe (it has been a while) :
getchar - <stdio.h>, or better <cstdio> - returns the next character on the input stream stdin. This function [or macro] does not return immediately. The user can enter several characters before hitting return, at which time the first character entered is returned as an integer representing this character in the character-set.
getch - <conio.h> - returns the next character on the given input stream as the integer value representing the character in the character-set and increments the stream's file pointer to point to the next character. The function returns immediately and does not ECHO to the console, so it is often used for password checking.
getche - <conio.h> - is the same as getc except that the entered character is echoed in the console.
Nothing beats testing! But be aware that getche() and getch (<conio.h>) are non-standard.
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
|