Writing the value of std::endl to output stream have two function:
First: Ends the line of output.
Second: Flushes the buffer, which forces the system to write to the output stream immediately.
Writing the value of std::endl to output stream have two function:
First: Ends the line of output.
Second: Flushes the buffer, which forces the system to write to the output stream immediately.
转载于:https://my.oschina.net/zengsai/blog/1258