假設某一班級有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;
相關文章
相關標籤/搜索