delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/13/19:52:45

Message-ID: <373B5FE2.18EA5785@unb.ca>
Date: Thu, 13 May 1999 19:27:30 -0400
From: Endlisnis <s257m AT unb DOT ca>
X-Mailer: Mozilla 4.51 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
Subject: Re: Source Code
References: <199905122101 DOT RAA18558 AT delorie DOT com>
X-Info: BrunNet, Inc. 888-278-6638
Reply-To: djgpp AT delorie DOT com

Wigoo wrote:

> I`m programming beginner and strange things happend to me, when I want to
> write something to screen using printf I have to use \n at the end of the
> line because without it the string will be shown at the end of the program.
> Can you help me?
>
> P.S. Sorry for my english

    That is normal it is buffered, if you want to force it to write just
include
fflush(stdout);
after the printf statement.


--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047




- Raw text -


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