Mail Archives: djgpp/2000/01/21/17:29:30
----- 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 -