Message-ID: <004501bf6460$274f2700$0100000a@athlon> From: "Jeremy Thomas" To: References: Subject: Re: Problem with cin.get Date: Fri, 21 Jan 2000 14:37:45 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 Newsgroups: comp.os.msdos.djgpp To: Matt Firewalker Cc: 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.