Mail Archives: djgpp/1997/01/27/23:13:20
> 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.
The reason is that printf() is buffered and cprintf() is not. Try
putting a call to "fflush(stdout)" after the printf() and see what
happens. This is the behaviour of most Unix like compilers.
--
The words I live by:
"That which does not kill us makes us stronger."
"There is no knowledge that is not power." Knowledge and power at:
"Without struggle, there is no progress." http://www.cs.pdx.edu/~idr
- Raw text -