C语言课程设计-学生成绩管理程序

来源:百度知道 编辑:UC知道 时间:2024/06/24 15:39:48
要 求:程序具备菜单功能或详细的提示功能,至少具备学生信息打印、添加、删除、查询、排序中的两项功能。熟练掌握循环、函数、结构体的操作,程序中至少要有一个自定义结构体。总程序量不少于100行,输出数据要格式美观。程序要有详细的注释,并画出程序流程图及必要的说明文档,程序设计内容和文档内容要体现个性化设计思想。~~~~~~谢谢高手帮忙啊,急用!

#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");
printf("\t\t | 8.