2 Comments
User's avatar
Yacob Cohen-Arazi's avatar

That's a nice reminder. Thanks. I always say that C++ hello world is one of the more complicated hello world programs to explain. std::cout is .. global object, << are overloaded and std::endl is ... a function that will \n + flush. Why? since << has an overload that takes a function!

I once heard that some companies will penalize developers if they #include <iostream>. Urban myth? perhaps! :)

Expand full comment
Taras Tsugrii's avatar

Haha. Fortunately with C++20's std::format, there will no longer be a reason to use iostream anymore and all arguments about its value will cease to exist :)

Expand full comment