作业帮 > 综合 > 作业

用c语言编写函数,统计某班一门课程的总分、平均分,主函数提供人数、成绩

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/15 05:21:31
用c语言编写函数,统计某班一门课程的总分、平均分,主函数提供人数、成绩
只要一门课程的就可以了,
很简单嘛
#include "stdio.h"
#include "stdlib.h"
#define N 3
struct student
{
char num[6];
char name[10];
int score[3];
float average;
}stu[N];
int main(void)
{
void print(struct student stu[10]);
int i,j;
for(i=0;i