代做C语言作业!
有作业要做的把题发给我帮你做!按难度收取分!
好好学习
路过
#include<stdio.h> void main(int argc,char *argv[]) { FILE *fp,*fp1; char temp; int kz=0; fp=fopen("fcopy.in","r+"); fp1=fopen("fcopy.out","w+"); while(!feof(fp)) { temp=getc(fp); if((temp==' '||temp=='\t')&&kz==0) { kz=1; putc(temp,fp1); } else if(temp!=' '&&temp!='\t') { kz=0; putc(temp,fp1); } } fclose(fp); fclose(fp1); }