C语言程序设计 学生管理系统 跪求啊

来源:百度知道 编辑:UC知道 时间:2024/09/24 06:58:42
要求:
1.能按学期、按班级完成对学生成绩的录入、修改
2.能按班级统计学生的成绩,求学生的总分及平均分 ,并能根据学生的平均成绩进行排序。
3.能查询学生成绩,不及格科目及学生名单。
4.能按班级输入学生的成绩单。

这是我用的,我同学做的,我也没仔细看,如果可以的话就用这个吧。
#include<stdio.h> /*引用库函数*/
#include<stdlib.h>
#include<ctype.h>
#include<string.h>
typedef struct /*定义结构体数组*/
{
char num[10]; /*学号*/
char name[20]; /*姓名*/
int score; /*成绩*/
}Student;
Student stu[80]; /*结构体数组变量*/
int menu_select() /*菜单函数*/
{
char c;
do{
system("cls"); /*运行前清屏*/
printf("\t\t****Students' Grade Management System****\n"); /*菜单选择*/
printf("\t\t | 1. Input Records |\n");
printf("\t\t | 2. Display All Records |\n");
printf("\t\t | 3. Sort |\n");
printf("\t\t | 4. Insert a Record |\n");
printf("\t\t | 5. Delete a Record |\n");
printf("\t\t | 6. Query |\n");
printf("\t\t | 7. Statistic |\n")