c程序编写 某班学生成绩管理

来源:百度知道 编辑:UC知道 时间:2024/09/28 14:07:27
某班学生一个学期成绩管理,课程数量为5门课程,学生人数为10人。
程序包括以下功能:
1、从键盘输入包括学号、姓名、哥们课程及成绩;
2、计算每个人的总分和平均分并按照平均分排序;
3、具有查询功能;
4、具有学生增加减少功能;
将原始数据和计算后的数据保存在磁盘文件 student.txt中。
着急啊,积分不是问题呀,就是能快点最好啊!!!

#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");