Article View: pl.comp.lang.c
Article #308786Re: działanie na std::cout
From: Sebastian Biały
Date: Wed, 07 Sep 2016 18:51
Date: Wed, 07 Sep 2016 18:51
14 lines
1559 bytes
1559 bytes
On 2016-09-07 18:59, Maciej Obłaza wrote: > Czy działanie standardowego wyjścia jest zależne od implementacji ? Z > tego co widzę na kompilatorze z Visual Studio 2016 nie muszę używać > std::cout.flush(), natomiast na gcc version 4.8.5 20150623 (Red Hat > 4.8.5-4) (GCC) muszę. Stąd moje pytanie do ekspertów. Że niby po wyjściu z main() napis się nie pojawia? http://stackoverflow.com/questions/15911517/is-there-a-guarantee-of-stdout-auto-flush-before-exit-how-does-it-work Jesli zaś narzekasz że napis nie pojawia się *natychmiast* to akurat jest dopuszczalne: http://stackoverflow.com/questions/26975876/is-stdcout-buffered
Technical Details
Message-ID:
<nqpnjf$djb$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<1473267545.5733.2.camel@where.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Sebastian Biały <heby@poczta.onet.pl> Newsgroups: pl.comp.lang.c Subject: Re: działanie na std::cout Date: Wed, 7 Sep 2016 20:51:00 +0200 Organization: ATMAN - ATM S.A. Lines: 14 Message-ID: <nqpnjf$djb$1@node2.news.atman.pl> References: <1473267545.5733.2.camel@where.com> NNTP-Posting-Host: 176-115-85-233.via.zamek.net.pl Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1473274287 13931 176.115.85.233 (7 Sep 2016 18:51:27 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Wed, 7 Sep 2016 18:51:27 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-Reply-To: <1473267545.5733.2.camel@where.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit