录入学生的所有数据(学号,姓名,三门课程成绩),选择性输出 包括(所有学生平均分,根据学号查询学生数据,查看排名,输出80分以上的全部学生数据)四个选项

#include<stdio.h>
#include<string.h> 
#define N 5
void input(int num[],char name[][20],double score[][4]); 
void average(double score[][4]);
void search(int n,int num[],char name[][20],double score[][4]);
void sort(int num[],char name[][20],double score[][4]);
void excellent(int num[],char (*name)[20],double (*p)[4]);
 
int main()
{
   
     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 ");
     	
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值