您的位置首页百科知识

C语言高手帮我编个小程序吧

C语言高手帮我编个小程序吧

#include

main()

{

FILE *fp1,*fp2;

int i,len;

char c,d,*p;

fp1=fopen("c:\\kk.txt","r");/*这是输入文件*/

fp2=fopen("c:\\kk1.txt","w");/*这是输出文件*/

while(!feof(fp1))

{

fscanf(fp1,"%s",c);

len=strlen(c);

p=&c[len-1];

for(i=0;ifprintf(fp2,"%s\n",d);}fclose(fp1);fclose(fp2);}

fprintf(fp2,"%s\n",d);

}

fclose(fp1);

fclose(fp2);

}

这东西貌似不难吧??

抖音看短剧