请教fflush的作用
请问哪位可以帮我解释一下fflush(stdin)的作用,括号里面的stdin又是什么意思,程序里面不用这个又会怎么样???
2005-04-23 23:19
[此贴子已经被作者于2005-4-23 23:28:32编辑过]

2005-04-23 23:27
2005-04-23 23:28
2005-04-23 23:30
#include <stdio.h> #include <conio.h>
int main() { char a,b; printf("input a="); scanf("%c",&a); if(a=='a') { /* fflush(stdin); */ printf("input b="); scanf("%c",&b); if(b=='b') printf("ok\n"); } getch(); return 1; } 自己体会一下用和不用所带来的不同效果吧。。。。。。。。。。。





2005-04-23 23:38
2005-04-23 23:51

2005-04-23 23:56
2005-04-24 00:06
2018-11-16 09:38