TURBO C实现数字报表的过滤 四川 宋捷 1992-08-14 #include main(int argc,char *arg[]) FILE *fp1, *fp2; int c; +b"))=NULL){ printf("\007正确格式:\%S源文件名目录文件名\n",argv[0]; exit(1); if (fpl=fopen (argv[1],",r+b"))=NULL) { printf("无法打开目录文件%s\n",argv[1]); exit(1);} if (fp2=fopen (argv [2]," w+b"))=NULL) { printf("%S\n", argv [2]; exit (1);} while ((c=getc (fpl))! =eof) { if ((c>0x2a) && (c<=0x39)) putc (0x20,fp2); else putc (c, fp2); fclose (fpl); fclose (fp2); printf ("\n \n数字已被过滤! \n");}