Mail Archives: djgpp/1997/01/28/16:56:42
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.
>
> Thanks for all answers !
If I remember right from the FAQ, this is due to the way that DJGPP
handles output, you would have to flush the output stream first , the
printf is basically being executing first, but the getch() is run before
the buffer is full and flushed automatically
I think this is correct, it's been too long since I programmed (shame on
me I know)
- Raw text -