#include<stdio.h> struct stu //定义结构体类型 { int num; char *name; char *sex; float score; } boy[]={ //定义结构体数组 {,}, {,"李四","男",62.5}, {,"何芳","女",92.5}, {,}, {,} }; void main() { ; ; ;i<;i++) { s+=boy[i].score; //计算总分 ) c+=; //统计成绩大于60的人数 } printf("总分:%f\n",s); ave=s/; printf("平均分:%f\n不及格人数:%d\n",ave,c); }