endl 和 '\n' 稍有不同,请看:
In their book _C++ How to Program_, H.M. Deitel and P.J. Deitel
state that the escape sequence \n causes the cursor to move to
the beginning of the next line on the screen. The endl stream
manipulator outputs a new line and then flushes the output
buffer.