[求助] 请问这程序哪里写错了,文件为何无法写入?
请问这程序哪里写错了,文件为何无法写入? #include<stdio.h> void main() { int a=2; FILE *fp; fp=fopen("c:\\aa.txt","w+"); fscanf(fp,"%d",a); fclose(fp); } |
请问这程序哪里写错了,文件为何无法写入? #include<stdio.h> void main() { int a=2; FILE *fp; fp=fopen("c:\\aa.txt","w+"); fscanf(fp,"%d",a); fclose(fp); } |