Mail Archives: djgpp/1997/09/19/02:38:31
Try adding fflsuh(stdout); just after the printf!
cya,
Patrick
On Sun, 14
Sep 1997, Jason D. Chu wrote:
>
> O.K. I write a simple Hello World Program.
>
> #include <stdio.h>
>
> main()
> {
> printf( "Hello World.\n" );
> getch();
> }
>
> and I compile using RHIDE. It runs and I have to push a key then it says
> Hello World. and the program ends...Why does it do the getch() before the
> printf()?
> --
> "The path to victory is marked with the laws of Virtue,
> not the commands of DOS."
>
> -- Lord British
>
---------------------------------------------------------------------------
Patrick email: url:
Jenkins pjenki1 AT gl DOT umbc DOT edu http://www.gl.umbc.edu/~pjenki1
---------------------------------------------------------------------------
- Raw text -