Mail Archives: djgpp-workers/1999/04/22/08:37:49
> >
> > It does use the stdio stream.
>
> This seems to contradict your observation that "clearerr(stdin)" in
> the C++ program doesn't solve the problem, whereas in a C program it
> does.
>
With 'int q' and clearerr(stdin), the program doesn't work correctly.
With 'char q' and no clearerr(stdin), same.
With 'char q' and clearerr(stdin), the program works.
My second report was based on the third case while the first was
based on the first two. I hope that explains the contradiction.
Mark
---
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/
- Raw text -