摘要: 今天写程序,从标准输入流读入字符,因为缓冲区的问题用了fflush()函数,记得以前用过好像还解决了问题,我想当时可能是凑巧了,vs里面可能这方面的功能定义了,但是今天在gcc中就没有那么幸运了,一开始觉得很奇怪,后来网上查了资料才有了这个大发现:(1)fflush is defined only for output streams. Since its definition of ``flush'' is to complete the writing of buffered characters (not to discard them), discarding unre 阅读全文
posted @ 2012-10-24 15:03 lymin 阅读(286) 评论(0) 推荐(0) 编辑