小平帮老师处理期末成绩时遇到了问题。他须要计算每一个同窗的平均成绩,并判断他们是否经过了期末考试不及格成绩(小于60)若都经过才能pass,若没经过要说明是哪几科未经过。所以他须要两个函数,一个求平均成

#include <iostream> #include <string> using namespace std; struct Student { string number; int Chinese,Math,English; }; int avery(Student& s) { return(s.Chinese+s.English+s.Math)/3; } bool
相关文章
相关标签/搜索