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

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

筛选

结构体之成绩统计2

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include  <string>#include<algorithm>struct st……

结构体之成绩统计2

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

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

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

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

```cpp只需要比上一题多加两个函数:求每名同学成绩的平均分函数,以及求最大值的函数。具体见代码:#includeusingnamespacestd;classstudent{public:stringnumber;stringname;intscore1,