delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/19/02:38:31

Date: Fri, 19 Sep 1997 02:37:30 -0400 (EDT)
From: Patrick <pjenki1 AT gl DOT umbc DOT edu>
To: "Jason D. Chu" <uu920 AT freenet DOT Victoria DOT BC DOT CA>
cc: djgpp AT delorie DOT com
Subject: Re: Why?
In-Reply-To: <EGH6KJ.4G2@freenet.victoria.bc.ca>
Message-ID: <Pine.SGI.3.95.970919023643.16483A-100000@umbc8.umbc.edu>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019