飞燕,能详细说明么?
You have lots more to work on! Never give up!c language!
#include <stdio.h>
#include <conio.h>
int main(void)
{
char ch;
FILE *fpOut,*fpIn;
fpOut=fopen("1.gif","rb+");
fpIn=fopen("2.gif","wb+");
if(fpOut==NULL || fpIn==NULL)
{
printf("Cannot open the img!\n");
exit(1);
}
ch=fgetc(fpOut);
while(!feof(fpOut))
{
fputc(ch,fpIn);
ch=fgetc(fpOut);
}
fclose(fpOut);
fclose(fpIn);
printf("Complete!Press any key to exit...\n");
getch();
return 0;
}