下面是帮你修改后的代码#includestruct student{int xuehao;
//学号不能用小数(float类型) 如果觉得int不够用,就用longchar name[10];
//姓名数组float chengji[3];
//成绩应该用小数(float类型), 你的本意也是这样的吧}stu[3];int main() { float x1,x2,x3,x4=0;
//4个float型变量 分别用来保存三科成绩和总成绩int i,j;for (i=0;i#includestruct student{float xuehao; char name [10]; float chengji[3];}stu[3]; void main() { float x1,x2,x3,x4=0.0;int i,j...
|