11-09-2004, 11:05 PM
|
#2 (permalink)
|
Ultra Techie Join Date: Jun 2004 Posts: 973
| selkie,
Yup ,getchar() function gets the character and terminates only at a Carriage Return.
If you want to process like what you said, this code might help, I guess:rolleyes:
while (getchar() != '\n')
{
[Do The Processing ]
}
The loop continues as long as no enter key is pressed.
Sign
Codes |
| |