Codes,
Thanks for your help! I tried what you wrote, and it did eliminate the double-processing problem. However, it still waits for a <CR> before doing any processing.
I'm using VS.Net 03, and one of my friends said that its getchar() handling was different compared to Borland. Any idea if that's the case?
Thanks again!
Charles