假设某一班级有M名学生,没人考N门功课,试设计两个c++函数,(1)求第i个学生N门功课的平均分数。(2)求第j门课程的平均分数

#include<iostream> using namespace std; float hhh(int a[]); float ppap(int b[]); const int M = 5, N = 5; void main() { cout << "请输入学生的成绩" << endl; int a[M][N], i, j, p,average1, average2; for (i = 0;
相关文章
相关标签/搜索