#include<stdio.h>#include<string.h>#define N 5voidinput(int num[],char name[][20],double score[][4]);voidaverage(double score[][4]);voidsearch(int n,int num[],char name[][20],double score[][4]);voidsort(int num[],char name[][20],double score[][4]);voidexcellent(int num[],char(*name)[20],double(*p)[4]);intmain(){
int n;///存放需要查找的数 int num[N];//存放N个学生的学号信息 char name[N][20];//存放N个学生的姓名信息 double score[N][4];//存放N个学生的三门课成绩和平均分 int choice;printf("Input each students's information\n");input(num,name,score);/*显示主菜单*/while(1){
printf("===============the Score Processing System============================\n");printf("1,print each student's average\n");printf("2,order the students by student's average decreasingly\n");printf("3,search the student \n");printf("4,print each student who is higher average score than 80 ");pr