I see developers on web generally use:
but they sometimes use flush:Code:std::cout << msg;
What is the purpose of the std::flush? In which cases it is recommended to use?Code:std::cout << msg << std::flush;
Cheers
I see developers on web generally use:
but they sometimes use flush:Code:std::cout << msg;
What is the purpose of the std::flush? In which cases it is recommended to use?Code:std::cout << msg << std::flush;
Cheers