delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/21/17:29:30

Message-ID: <004501bf6460$274f2700$0100000a@athlon>
From: "Jeremy Thomas" <yasper AT earthlink DOT net>
To: <djgpp AT delorie DOT com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000118100502 DOT 3041K-100000 AT is>
Subject: Re: Problem with cin.get
Date: Fri, 21 Jan 2000 14:37:45 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Reply-To: djgpp AT delorie DOT com

----- Original Message -----
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
To: Matt Firewalker <arenaproject AT hotmail DOT com>
Cc: <djgpp AT delorie DOT com>
Sent: Tuesday, January 18, 2000 12:05 AM
Subject: Re: Problem with cin.get


>
> On Mon, 17 Jan 2000, Matt Firewalker wrote:
>
> > Still have a small problem... if I am supposed to fflush the buffer, I
don't
> > know where.
>
> Use cout.flush() after the string you want to be printed.

    You can also use either of the following:

cout << "string to go out" << flush;
or
cout << "string to go out also" << endl;

Both of these flush the buffer, but endl will also place a new line after
the string.


- Raw text -


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