Mail Archives: djgpp/1997/01/28/09:21:48
On Tue, 28 Jan 1997, xlysak wrote:
> Can someone help me ?
>
> In my program are two function - first is printf() and second is
> getch(),
> but - first is called getch() and then printf(). Ghosts in the GCC :-)?
> All examples showed bellow running correctly in Borland C++ 3.1.
In GCC standard input/output is buffered. So there's a chance of not
having something printed at the right time. Try flushing the buffer after
each printf with fflush(stdout); /* or something like that, don't have
ref. on this computer */
-- Nikita.
- Raw text -