FILE *fp;printf("请输入文件名,路径:"); //打开txt文件scanf("%s",filename);if((fp = fopen(filename,"r")) == NULL) {fprintf(stderr,"%s 文件打开失败!\n",filename);exit(0); } for(int i=0; i<12; i++) //循环读取{ fscanf(fp,"%s%s%f",StuInfo[i].I...