delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/08/16:10:21

From: Stefano Bizzi <sbcinf AT mbox DOT vol DOT it>
Newsgroups: comp.os.msdos.djgpp
Subject: Strange behaviour...
Date: Sat, 08 Mar 1997 17:43:14 +0100
Organization: Telecom Italia - Video On Line
Lines: 17
Message-ID: <33219722.5A96@mbox.vol.it>
Reply-To: sbcinf AT mbox DOT vol DOT it
NNTP-Posting-Host: no-a-1.intelnet.vol.it
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have a little problem compiling a simple program...
With a code like this:

....
printf("\nHello World");
printf("\nSomething else...");
clrscr();
.....

The compiler execute the clrscr() function BEFORE the last printf().
Then, it writes "Hello World", it clear the screen and, then, write
"Something else". Why? (I compiled the from RHide).

Hi

Stefano Bizzi
stefabiz AT mbox DOT vol DOT it

- Raw text -


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