#include
#include
void main()
{
FILE *fp1,*fp2;
char fl1[20],fl2[20];
char c;
printf("please input source file name:\n");
scanf("%s",fl1);
printf("please input target file name:\n");
scanf("%s",fl2);
if((fp1=fopen("fl1","r"))==NULL)
{
printf("cannot open source file\n");
exit(1);
}
if((fp2=fopen("fl2","w"))==NULL)
{
printf("cannot open target file\n");
exit(1);
}
while(!feof(fp1))
{
int ch=0;
int n=0;
c=fgetc(fp1);
if((c>='a'&&ch<='z')||(c>='A'&&ch<='Z'))
{
c=c+1;
if(c>'z'&&c<='Z'+n||c>'z')c=c-26;
}
fputc(c,fp2);
}
fclose(fp1);
fclose(fp2);
}