This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with stringstream
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: "Jessee, Mark" <Mark dot Jessee at gdcanada dot com>
- Cc: "'Moore, Mathew L'" <MooreML at BATTELLE dot ORG>,"'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 25 Oct 2002 18:58:13 +0200
- Subject: Re: Problems with stringstream
- References: <83E3831A88E65844B01DB1A73FB66F93023BBBAC@CSDNT99.cdcgy.com>
- Reply-to: bjensen at fastmail dot fm
Hi guys,
Input and output on unix systems are buffered.
std::cerr is usually line buffered, std::cout
is line buffered, when directed to a terminal
and block buffered, when connected to a file.
In case of line buffered output, you dont see
any, unless you flush it, or write a newline
character to the stream, which causes the buffer
to be flushed.
Yours sincerely,
Bjorn