可以不写endl因为<相当于 "\r\n"也就是说<
inserts a newline character and then flushes the buffer;这是原文,我想它的意思是,用了这个操作符后,相当于加入了一个换行符‘\n’,同时清除原有缓冲。
可以哈