Thread: i need help!
View Single Post
Old Jul 10th, 2005, 10:29 AM   #2
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
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
stevengs is offline   Reply With Quote