CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C/C++ >  C语言

fflush(stdin)请问stdin是什么意思?

楼主accp258(男人背后的女人)2006-08-30 18:13:18 在 C/C++ / C语言 提问

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

相关问题

关键词

得分解答快速导航

  • 帖主:accp258
  • lj860603
  • corrupt
  • chenhu_doc
  • steedhorse

相关链接

  • C/C++ Blog
  • C/C++类图书
  • C/C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo