VC编译器下c语言没有办法打开TXT文件。代码如下:#include #include void main() { FILE *fp;
if((fp=fopen("C:\Users\Administrator\Desktop\ad.txt","r"))==NULL) { printf("cannot open the file!"); exit(0); } else printf("ok"); fclose(fp); }
收起
看errno的值 路径对吗
报告相同问题?