摘要: #include <stdio.h>int main(){ /*从键盘上输入一些字符,把这些字符送到磁盘上,直到输入#号时*/ FILE *fp; char filename[10],ch; scanf("%s",filename); if((fp=fopen(filename,"w"))==NULL) { printf("can't open the file.\n"); exit(0); } ch=getchar(); ch=getchar(); while(ch!='#') { fputc(c 阅读全文
posted @ 2013-03-07 22:27 王井玉 阅读(232) 评论(0) 推荐(0) 编辑