A simple interpretation of the mysterious value categories of C++: lvalues represent objects and rvalues represent values.
Passing by value and by
constreference typically mean the same thing to the caller yet may be chosen in different circumstances, depending on who you ask. Why is writing function parameters harder than it should be in C++? Instead, let's keep it simple.
File input is often mishandled in C++. Find out why conditioning on
eof()might not do what you expect, and learn the correct, idiomatic approach to validating input.
Hear about new articles
Subscribe to the RSS feed with your favourite news feed reader.