Side-question: Are there any tips for understanding cppreference.com? I really struggle to understand and it's sad because there's so much info there
Asked
Active
Viewed 88 times
0
-
C++ is complicated and as a result the documentation is often complicated. Often getting a leg up by reading the simplified, and sometimes incorrect, documentation on cplusplus.com helps. Microsoft documentation is also generally easier to read, but it can bring with it its own problems. – user4581301 Nov 04 '21 at 19:41
-
1`0, end` means move the read position to 0 bytes from the end of the stream. Typically this would be the end of a file. Just `0` means seek to the absolute 0 point in the stream, the beginning. This would be the start of a file. In a non-file stream exactly what begin and end mean is more fluid. For example, in a network stream the true beginning of the stream may no longer be available, and the end... no one knows where the actual end will be until the connection is closed. – user4581301 Nov 04 '21 at 19:47
-
@user4581301 Thanks a lot. I really appreciate. – Victor Ajayi Nov 04 '21 at 20:07
-
cppreference is a good site to use as a reference, but not what I'd use as a tutorial. In my opinion, it's not an alternative to a [good C++ book](https://stackoverflow.com/a/388282/4641116). – Eljay Nov 04 '21 at 22:49
-
Some examples of usage are "hidden" in the desription of `std::ios_base::seekdir`, https://en.cppreference.com/w/cpp/io/ios_base/seekdir – zkoza Nov 05 '21 at 17:56