View Single Post
  #3 (permalink)  
Old May 13th, 2006, 12:39 AM
Alan-LB Alan-LB is offline
Authorized User
 
Join Date: Mar 2005
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB
Default

fflush() didn't work. I changed the program by adding a second getchar() -
...
char x;
...
x = getchar();
getchar();
...
The second getchar() seems to "absorb" the '\n' from pressing the ENTER key. Program works fine now.

Thanks for your help anyway

Alan


Reply With Quote