如题所述
C语言中FILE
VC中
在"stdio.h"中有如下定义
struct _iobuf {
char *_ptr; //文件输入的下一个位置
int _cnt; //当前缓冲区的相对位置
char *_base; //指基础位置(即是文件的其始位置)
int _flag; //文件标志
int _file; //文件的有效性验证
int _charbuf; //检查缓冲区状况,如果无缓冲区则不读取
int _bufsiz; //缓冲区的大小
char *_tmpfname; //临时文件名
};
typedef struct _iobuf FILE。
VC中
在"stdio.h"中有如下定义
struct _iobuf {
char *_ptr; //文件输入的下一个位置
int _cnt; //当前缓冲区的相对位置
char *_base; //指基础位置(即是文件的其始位置)
int _flag; //文件标志
int _file; //文件的有效性验证
int _charbuf; //检查缓冲区状况,如果无缓冲区则不读取
int _bufsiz; //缓冲区的大小
char *_tmpfname; //临时文件名
};
typedef struct _iobuf FILE。
温馨提示:答案为网友推荐,仅供参考
第1个回答 2019-07-04
在stdio.h文件里面
要用的话就在代码开头增加
#include
想要看看FILE是什么构成的就在Dev-C++里面输入"FILE",按住CTRL-点"FILE"就可以自动调到定义的地方了
要用的话就在代码开头增加
#include
想要看看FILE是什么构成的就在Dev-C++里面输入"FILE",按住CTRL-点"FILE"就可以自动调到定义的地方了