char a[];scanf("%s",a);strcat(a,".txt");FILE *fp=fopen(a,"w");fprintf(fp,"%s",a);这样可编译,但程序运行时会显示停止运行 查看完整描述