从键盘读取数据,回车才能显示的问题

Writes the specified byte to this stream. If the byte is a newline and automatic flushing is enabled then the flush method will be invoked.

每次read()的时候,write()将数据写到缓冲区,然后等到有换行符出现的时候,一起flush()

posted @ 2011-11-24 22:10  xiao秋  阅读(329)  评论(0编辑  收藏  举报