c++ flushing the buffer
问题 I know there are many buffer questions on here but I can't seem find a clear answer on this. std::cout << "write to screen" << std::endl; I know this code will write to the screen and flush the buffer because of the "endl", but if I wrote this: std::cout << "write to screen"; Wouldn't the buffer be flushed regardless since the text has been outputted to the screen? 回答1: Wouldn't the buffer be flushed regardless since the text has been outputted to the screen? Assuming that you have seen the