请大家帮忙看下我这点哪里有问题
#include <stdio.h>main()
{
char c1,fn[30];
int delt;
FILE *fp ,*fp1;
printf ("input filename:");
scanf ("&s",fn );
fp =fopen (fn,"r");
fp1=fopen("result.txt","w");
do
{
c1=fgetc(fp);
if (c1>=32 && c1<=126)
{
delt=c1-32;
c1=126-delt;
}
fprintf(fp1,"#c",c1);
} while (c1!=-1);
}
做的是一个简单的加密txt的小程序