🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #744

Re: How to just flush `cout'?

#744
From: Donald Hunter
Date: Fri, 25 Aug 1995 08:49
23 lines
1183 bytes
In article <9508241818.AA01765@vital> albert@inrs-telecom.uquebec.ca
(Albert Golembiowski) writes:
> ...
>
> However, the test doesn't appear, since I believe `cout' needs to be
> flushed. How to do it? "info" is mum about it. Unfortulately,
> `endl' is of no use to me, as it flushes and feeds forward.
> 
> Your expertise will be much appreciated.


You can use:

	cout.flush();


Donald.

-- 
| Donald I Hunter             | Email: donaldh@memex.co.uk       |
| MR-Memex Ltd.               | Phone: +44(0)13552 33804 ext 143 |
| 2 Redwood Court, Peel Park, |                                  |
| East Kilbride, G74 5PF      | Firkin Ale, it's firkin' great ! |
Technical Details
Message-ID: <w5enyas6zg.fsf@pegasus.memex>
Path: arc1-ca.pugleaf.net!dish.news.pipex.net!pipex!memex!usenet
References: <9508241818.AA01765@vital>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!dish.news.pipex.net!pipex!memex!usenet
From: donaldh@pegasus.memex (Donald Hunter) (Donald Hunter)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Re: How to just flush `cout'?
Date: 25 Aug 1995 09:49:39 +0100
Organization: MR-Memex Ltd.
Message-ID: <w5enyas6zg.fsf@pegasus.memex>
References: <9508241818.AA01765@vital>
NNTP-Posting-Host: pegasus.memex.co.uk
In-reply-to: albert@inrs-telecom.uquebec.ca's message of 24 Aug 1995 14:23:12 -0400
X-Newsreader: (ding) Gnus v0.98.2