cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/02/19:38:27

Sender: nate AT cartsys DOT com
Message-ID: <3665DC93.9F29172F@cartsys.com>
Date: Wed, 02 Dec 1998 16:34:27 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: little problem but great troubles
References: <366572DA DOT 75D0D92A AT spektracom DOT de>
Reply-To: djgpp AT delorie DOT com

Andrej Aderhold wrote:
> 
> hi there,
> 
> I've got a really stupid problem crouching up everytime with djgpp. So
> far I couldn't
> solve it but its probably sth. with the buffer. here it goes.
> 
> #include <iostream.h>
> #include <conio.h>
> 
> main()
> {
>     cout << " some stuff";
>     getch();         // or even when, while(!kbhit());
> }
> 
> ' some stuff' first appears at the screen when I hit the key, and then
> the programm terminates. So, now when I put a \n behind stuff like
> 
> cout << " some stuff\n";
> 
> it's doing it right. It first shows the line and then - on keyhit -
> terminates.
> I would be glad if somebody could explain this to me.

First, please don't post in HTML.

Next, read FAQ section 9.4.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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