c语言怎么把结构体数组写入txt文件答:i].eng+student[i].math+student[i].phy)/3.0;fprintf(fp1,"%s,%s,%d,%f,%d,%f,%d,%f",student[i].no,student[i].name,student[i].eng,student[i].point1,student[i].math,student[i].point2,student[i].phy,student[i].point3);} 就是用fprintf函数写入文件,你试试看吧。