Информация об изменениях

Сообщение Re[39]: Как в одну строку кода прочитать содержимое файла в от 09.01.2024 14:26

Изменено 09.01.2024 14:27 rg45

Re[39]: Как в одну строку кода прочитать содержимое файла в
Здравствуйте, ·, Вы писали:

·>Иди доки читай, ламьё.


Сам туда иди, чмо тупорылое:

https://timsong-cpp.github.io/cppwp/istream.unformatted#38

pos_type tellg();
38 Effects: Behaves as an unformatted input function (as described above), except that it does not count the number of characters extracted and does not affect the value returned by subsequent calls to gcount().

39 Returns: After constructing a sentry object, if fail() != false, returns pos_type(-1) to indicate failure.
Otherwise, returns rdbuf()->pubseekoff(0, cur, in).


И специально для тебя, имбецила, добавил дополнительную печать, чтоб тебе виднее было, чему равно fail() и чему равно tellg:

http://coliru.stacked-crooked.com/a/243f1a5358e0b46e
Re[39]: Как в одну строку кода прочитать содержимое файла в
Здравствуйте, ·, Вы писали:

·>Иди доки читай, ламьё.


Сам туда иди, чмо тупорылое:

https://timsong-cpp.github.io/cppwp/istream.unformatted#38

pos_type tellg();
38 Effects: Behaves as an unformatted input function (as described above), except that it does not count the number of characters extracted and does not affect the value returned by subsequent calls to gcount().

39 Returns: After constructing a sentry object, if fail() != false, returns pos_type(-1) to indicate failure.
Otherwise, returns rdbuf()->pubseekoff(0, cur, in).


И специально для тебя, имбецила, добавил дополнительную печать, чтоб тебе виднее было, чему равно fail() и чему равно tellg():

http://coliru.stacked-crooked.com/a/243f1a5358e0b46e