No, your explanation is wrong.
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 1 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:Flying (等级:18 - 华新水车,发帖:16849) 发表:2003-05-13 14:55:03  楼主  关注此帖
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版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 求学狮城 | 返回上一页 | 本主题共有 1 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码