直接上代码
#include <stdio.h>
#include<stdlib.h>
#define N 10 //假设有十个学生
#define M 4
void main()
{ int score[N][M];//定义一个二维数组,行表示学生号,列用来放三个科目第四列用来存放学生平均分
char choice='1';
void input(int a[][M],int,int);//函数声明
void aver_stu(int score[][M],int,int);
void aver_cour(int score[][M],int,int);
void orde_aver(int score[][M],int,int);
void failed(int score[][M],int,int);
input(score,N,M);
/*显示主菜单*/
while(choice!='0')
{ system("cls");//清屏
printf(" ==========the Score Processing System ====================\n");
printf("1.print each student's average\n");
printf("2.print each course's average\n");
printf("3.Order the students by student's average decreasingly \n");
printf("4.print the failed student \n");
printf("0.Exit the system \n");
printf("&#