error C2275: 'FILE' : illegal use of this type as an expression

来源:互联网 发布:截音频的软件 编辑:程序博客网 时间:2024/04/27 20:57

error C2275: 'FILE' : illegal use of this type as an expression

.c文件中将定义放在其他语句前边即可解决。

比如

 FILE* pFile = fopen("xxx.xml","rb");

拆成

 FILE* pFile;
 pFile = fopen("apabi.xml","rb");

然后

 FILE* pFile;//放文件前边集中声明各种变量的地方即可。

c语言的特殊之处。

原创粉丝点击