Daily Dose C++: std::endl
October 30, 2020•54 words
Source:
The Dose:
<< std::endl; is the same as << "\n" << std::flush;.
Do you need to flush every time you end a string?
I definitely don't have to.
Better to just call flush when you need it.
October 30, 2020•54 words
<< std::endl; is the same as << "\n" << std::flush;.
Do you need to flush every time you end a string?
I definitely don't have to.
Better to just call flush when you need it.