题解 1051: [编程入门]结构体之成绩统计2

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

函数彩笔一个

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct ji{  char num[100],na[100];  int s[3];};void input(struct ji ……

1051: [编程入门]结构体之成绩统计2

#题目没有说清保留几位小数或者只输出整数,经过我的测试,输出的成绩只要整数即可```cpp#includeusingnamespacestd;structStudent{stringnum,name;doubleMath,English,Chinese;doubleSum=Math+English+C

结构体之成绩统计2

-解题思路:用两个函数完成输入与输出,具体见代码注释-代码如下:```c#include#includetypedefstructstduent{charid[20];charname[20];intscores1;intscores2;intscores3;}stu;//定义结构体voidinput

有详解 简单易懂

```cpp//目标:计算每个科目的平均分以及输出总分最高的学生的信息#include#includeusingnamespacestd;structstudent{stringxuehao;stringname;intkm1,km2,km3;};intmain(){//n个学生的成绩,