Summary
Full Transcript
►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this lesson we take a look at std::cout, a globally defined object that has been around for a long time in C++. But why do we still need it if we have std::print in C++23? Certainly for legacy code it is useful -- but in this lesson I try to explain that std::cout is a 'stream' type that allows us to write out information. We can build our own useful abstractions with this type, and thus it is just a different model for writing out data. You can still use it with things like std::format to get the best of both worlds as well. Let me know which you prefer and the trade-offs you have heard between std::cout and std::print! As always, feel free to bring up any questions and discuss what you've learned! ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel! ►Join our free community: https://courses.mshah.io/communities/Q29tbXVuaXR5LTI3MzAz
