fflush(stdin)请问stdin是什么意思?
fflush(stdin)请问stdin是一个系统定义好的变量吗?还是............. 问题点数:20、回复次数:6Top
1 楼accp258(男人背后的女人)回复于 2006-08-30 18:13:40 得分 0
在线等待!!!!!!!!!!!Top
2 楼lj860603(跑吧,键键)回复于 2006-08-30 18:17:22 得分 5
stdin是一个标准FILE*(文件型指针)指向通常是用键盘的输入的输入流。fflush()的功能一般是被视为清除缓冲区的。Top
3 楼corrupt(喜欢 睡在床板下 的思考)回复于 2006-08-30 18:17:34 得分 5
把缓冲区清空到标准输入(sdtin)
stdin标准出入
stdout标准输出
stderr标准出错Top
4 楼accp258(男人背后的女人)回复于 2006-08-30 18:33:46 得分 0
stdin是系统已经定义好的文件指针是吗?可以这样理解吗?
Top
5 楼chenhu_doc(^0^纯一狼^0^ 看书看到大笑,直到不能自已)回复于 2006-08-30 21:53:40 得分 5
fflush
Flushes a stream.
int fflush( FILE *stream );
Remarks
The fflush function flushes a stream. If the file associated with stream is open for output, fflush writes to that file the contents of the buffer associated with the stream. If the stream is open for input, fflush clears the contents of the buffer. fflush negates the effect of any prior call to ungetc against stream. Also, fflush(NULL) flushes all streams opened for output. The stream remains open after the call. fflush has no effect on an unbuffered stream.
Top
6 楼steedhorse(晨星)回复于 2006-08-30 23:42:13 得分 5
stdin是系统已经定义好的文件指针是吗?可以这样理解吗?
是的,就是这样。Top




