I need help with this structure loop(?)

Bob Beaulieu bobb at netcom.COM
Wed May 29 09:51:38 AEST 1991


In article <789 at ra.MsState.Edu>, cee1 at ra.MsState.Edu (The Chuckmeister) writes:
> 		puts("Finally, enter the year published.");
> 		printf("[....]\b\b\b\b\b");
> 		scanf("%d", &inventory[count].year);

                fflush(stdin); 
              
This addition lets your program work just fine for me. I believe another scanf
would do the same job (get rid of the newline);

Hope it help!

bobb
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                              Bob Beaulieu                            |
|                              San Jose, CA.                           |
|                             (408) 723-0556                           | 
|                             bobb at netcom.com                          |
|                   {apple,amdahl,claris}!netcom!bobb                  |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Comp.lang.c mailing list