The reason is that std::endl flushes the output buffer, while “\n” doesn't. That means that every time we use std::endl, the buffer should be flushed.
確定! 回上一頁