c语言结构体如何算平均值,总成绩,最高成绩,最低成绩17364917833?_百度知...答:codeStudent students[10]; // 假设有10个学生 int scores[] = {17, 36, 49, 17, 83, 3, 3, 3}; // 假设成绩数组为 {17, 36, 49, 17, 83, 3, 3, 3} for (int i = 0; i < 8; i++) { students[i].score = scores[i]; }计算平均值:codeint sum = 0; int coun...
用c语言找出五科的平均成绩答:float *getCAvg(int stu[][CN]);//每门课平均分 int *getMax(int stu[][CN]);int getVariance(int *nums,int len);//获取一组数组的方差,nums:数组,len:数组长度 int main(){ int i,stu[SN][CN]={{99,91,92,93,72},{92,72,83,97,99},{81,82,95,93,89}};float *cAv...