关于文件操作的问题!急急急!
急!求解惑!问题错误提醒是:
F:\我的课件\C语言\c++文件存放处\1\1.cpp(15) : error C2227: left of '->_flag' must point to class/struct/union
F:\我的课件\C语言\c++文件存放处\1\1.cpp(15) : fatal error C1903: unable to recover from previous error(s); stopping compilation
#include<stdio.h>
#include<stdlib.h>
int main()
{char c;
FILE *inflie,*outfile;
if((infile=fopen("f:\\呵呵.txt","r"))==NULL)
{printf("cannot open");
exit(0);
}
if((outfile=fopen("f:\\呵呵副本.txt","w"))==NULL)
{printf("cannot open");
exit(0);
while(!feof(infile))
{ c=fgetc(infile);
fputc(c,outfile);
}
fclose(infile);
fclose(outfile);
return 0;
}
[ 本帖最后由 唏嘘草 于 2011-10-15 22:14 编辑 ]