帮忙编写下面的程序谢谢
#include <stdio.h>#define maxstu 20
/*函数声明语句*/
int inputscore(int score[]);
void displayscore(int score[],int n) ;
void sumavgscore(int score[],int n);
void maxminscore(int score[],int n);
void main()
{int stu_score[maxstu];
int stu_count=0;
int choose;
printf("\n\n");
printf("\t\t|--------------------------------|\n");
printf("\t\t| 学生成绩统计系统 |\n");
printf("\t\t|--------------------------------|\n");
printf("\t\t| 1--录入学生成绩 |\n");
printf("\t\t| 2--显示学生成绩 |\n");
printf("\t\t| 3--统计总分和平均分 |\n");
printf("\t\t| 4--统计最高分和最低分 |\n");
printf("\t\t| 0--退出 |\n");
printf("\t\t|--------------------------------|\n");
printf("\t\t请选择主菜单序号(0-4):");
scanf("%d",&choose);
switch(choose)
{case 1: stu_count=inputscore(stu_score);break;
case 2:displayscore(stu_score,stu_count);break;
case 3:sumavgscore(stu_score,stu_count);break;
case 4:maxminscore(stu_score,stu_count);break;
case 0:exit(0);
}
}
int inputscore(int score[])
{int n=0;
while(1)
{printf("input score:");
scanf("%d",&score[n]);
if(score[n]<0)
break;
else
n++;
}
return n;
}
void displayscore(int score[],int n)
{
}
void sumavgscore(int score[],int n)
{
}
void maxminscore(int score[],int n)
{
}