Avik wrote:
> clear/flush your standard input buffer before you take a an input from
> standard input device (i.e. keyboard).
> use fflush(stdin) before scanf. e.g.
>
>
> scanf("%d",& y);
> fflush(stdin);
>
> scanf("%c",& z);fflush(stdin) is NON-ANSI Standard behavior. Besides...the input data could already be in the queue. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
