View Single Post
Old 11-09-2004, 11:05 PM   #2 (permalink)
intercodes
 
Ultra Techie

Join Date: Jun 2004

Posts: 973

intercodes

Send a message via Yahoo to intercodes
Default

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

intercodes is offline