From 8c4ac4e4b5420b76676b577a542589cac6cadf50 Mon Sep 17 00:00:00 2001 From: Cx330 <2011690092@qq.com> Date: Fri, 14 Apr 2023 23:44:57 +0800 Subject: [PATCH] Cx330_2 --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 41ab212..7762331 100644 --- a/README.md +++ b/README.md @@ -70,23 +70,24 @@ typedef struct student{ #### 函数声明 ``` -int Menu(void); -void ReadScore(STU stu[],int n,int m); -void AverSumofEveryStudent(STU stu[],int n,int m); -void AverSumofEveryCourse(STU stu[],int n,int m); -void SortbyScore(STU stu[],int n,int m,int (*compare)(float a,float b)); -int Ascending(float a,float b); -int Descending(float a,float b); -void SwapFloat(float *x,float *y); -void SwapLong(long *x,long *y); -void SwapChar(char x[],char y[]); -void AsSortbyNum(STU stu[],int n,int m); -void SortbyName(STU stu[],int n,int m); -void SearchbyNum(STU stu[],int n,int m); -void SearchbyName(STU stu[],int n,int m); -void StatisticAnalysis(STU stu[],int n,int m); -void WritetoFile(STU record[],int n,int m); -void ReadfromFile(STU record[],int *n,int *m); +int Menu(void); //菜单显示、用户输入函数 +void ReadScore(STU stu[],int n,int m); //学生成绩录入函数 +void AverSumofEveryStudent(STU stu[],int n,int m); //求每个学生总分和平均分的函数 +void AverSumofEveryCourse(STU stu[],int n,int m); //求每门课程总分和平均分的函数 +void SortbyScore(STU stu[],int n,int m,int (*compare)(float a,float b)); //选择法将数组 sum 的元素排序的函数 +int Ascending(float a,float b); //使数据按升序排序的函数 +int Descending(float a,float b); //使数据按降序排序的函数 +void SwapFloat(float *x,float *y); //用于交换两个单精度浮点数的函数 +void SwapLong(long *x,long *y); //用于交换两个长整型数据的函数 +void SwapChar(char x[],char y[]); //用于交换两个字符串的函数 +void AsSortbyNum(STU stu[],int n,int m); //选择法将数组 num 的元素值从低到高排序的函数 +void SortbyName(STU stu[],int n,int m); //交换法实现字符串按字典顺序排序的函数 +void SearchbyNum(STU stu[],int n,int m); //按学号查找学生成绩并显示查找结果的函数 +void SearchbyName(STU stu[],int n,int m); //按姓名的字典顺序排出成绩表的函数 +void StatisticAnalysis(STU stu[],int n,int m); //统计各分数段的学生人数及所占的百分比的函数 +void PrintScore(STU stu[],int n,int m); //打印学生成绩的函数 +void WritetoFile(STU record[],int n,int m); //输出学生信息到文件中的函数 +void ReadfromFile(STU record[],int *n,int *m); //从文件中读取学生信息的函数 ``` ### 成绩录入