学生的记录由学号和成绩组成,N名学生的数据在主函数中放入结构体数组s...答:const int N(5);//学生数,具体数目你自己改吧 double average(0);//全局变量,计算平均分 struct data_base { int number;int score;}s[N]={{1,89},{1,99},{1,47},{1,56},{1,76}};//结构体的全局对象并初始化 double fun(int &n){ n=0;double av(0);for(int i=0;i<...
学生的记录是由学号和成绩组成,n名学生的数据已在主函数中放入结构体数...答:include<string.h> typedef struct student {char num[10];double score;} strec ;int fun(student*, int, student**,int,int);int main(){ strec s[5]={{"0001",90} ,{"0002",80.0},{"0003",70},{"0004",60},{"0005",50}};strec *b;int count = fun(s,5, &b, 60, ...