Article View: pl.comp.lang.c
Article #309734Re: Problem z std::istream
From: Bartłomiej Golenko
Date: Fri, 06 Jul 2018 16:01
Date: Fri, 06 Jul 2018 16:01
20 lines
1584 bytes
1584 bytes
Borneq <borneq@antyspam.hidden.pl> wrote: > W dniu 04.07.2018 o 15:45, Bartłomiej Golenko pisze: >> std::ifstream > > Tak, ifstream tworzę a istream używam jako klasę bazową, bardziej > ogólną. Ale ten problem występował nie jak przeczytałem wszystkie do > końca, tylko "wyszedłem poza koniec" czyli zażądałem przeczytania > większej ilości niż ma strumień. Gdy się pilnuję, to teraz nie ma tego > błędu. http://www.cplusplus.com/reference/istream/istream/seekg/ C++98: If the eofbit flag is set before the call, the function fails (sets failbit and returns). C++11: The function clears the eofbit flag, if set before the call. B.
Technical Details
Message-ID:
<slrnpjv4j5.75q.bartek@kts.pwr.edu.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!pwr.wroc.pl!news.wcss.wroc.pl!not-for-mailReferences:
<phgb39$l7r$1@node2.news.atman.pl> <slrnpjpjr2.ptq.bartek@kts.pwr.edu.pl> <phnuad$ib1$1@node1.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!pwr.wroc.pl!news.wcss.wroc.pl!not-for-mail From: Bartłomiej Golenko <bartek@zts.invalid> Newsgroups: pl.comp.lang.c Subject: Re: Problem z std::istream Date: Fri, 6 Jul 2018 16:01:41 +0000 (UTC) Organization: Politechnika Wroclawska Lines: 21 Message-ID: <slrnpjv4j5.75q.bartek@kts.pwr.edu.pl> References: <phgb39$l7r$1@node2.news.atman.pl> <slrnpjpjr2.ptq.bartek@kts.pwr.edu.pl> <phnuad$ib1$1@node1.news.atman.pl> Reply-To: pisz_na_newsy@albo.wcale.pl NNTP-Posting-Host: zts.ita.pwr.wroc.pl Mime-Version: 1.0 X-Trace: z-news.wcss.wroc.pl 1530892901 20394 156.17.38.22 (6 Jul 2018 16:01:41 GMT) X-Complaints-To: abuse@news.pwr.wroc.pl NNTP-Posting-Date: Fri, 6 Jul 2018 16:01:41 +0000 (UTC) User-Agent: slrn/1.0.3 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit