新手,麻烦帮我看下为什么编译不了呢
int main(){
FILE *fptr;
char filename[20],ch;
printf("请输入文件名:");
scanf("%s",filename);
if((fptr=fopen(filename,"w"))==NULL)
printf("打开文件失败");
else
{
while((ch=getche(i love you))!='\r')
fputc(ch,fptr);
}
fclose(fptr);
return 0;