问一个关于c++ input 的问题。。
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 8 楼,当前显示第 7 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:Flying (等级:18 - 华新水车,发帖:16849) 发表:2003-05-13 14:55:03  7楼 
Hehe,fflush(stdio) is a C style function. It is not suitable for C++. :)
No, your explanation is wrong.
Yes, fflush(stdin) does not work.

No, it doesn't work even in C!

The reason is that fflush really does flushing only on output streams, and it ignores input stream. So even in C, you have to manually read input stream in order to flush it.
Flying @way 吳穎暉
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 8 楼,当前显示第 7 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码