关于文件 求解释
程序代码:
# include "stdio.h" # include "stdlib.h" void main() { FILE *fp; char ch; if((fp=fopen("chen.txt","r+"))==NULL) { printf("error!"); getchar(); exit(1); } while(ch=fgetc(fp)!=EOF) printf("%c",ch); fclose(fp); } [local]1[/local]在同层文件下有chen.txt
为什么我的屏幕上是笑脸