学生信息管理系统C语言版
//交流学习//QQ:1194758555#include#include#include#include#includeint k,n;struct student{double yuwen;double shuxue;double yingyu;double zong;double pingjun;char name[20];char num[20];} stu[1000];void jiazai(struct student stu[],int *num1);void baocun(struct student stu[],int n);void find(struct student stu[],int n);int findnum(struct student stu[],int n,char *num);//查找学号;void shanchu(struct student stu[],int *num1);void shanchuyi(struct student stu[],int *num1);//删除一条记录;void shanchuquanbu(struct student stu[],int *num1);void tianjiayi(struct student stu[],int i);//添加一记录;void tianjia(struct student stu[],int *num1);//添加记录;void xiugai(struct student stu[],int n);//修改一条记录;void output(struct student stu[],int n,int x);//打印信息;void paixu(struct student stu[],int n);//排序;int jianchaxuehao(struct student stu[],char *num);//检查学号的合法性;int jianchachengji(double num);//检查成绩的合法性;void outputone(struct student *stu,int i,int x);//输出一条信息void caidan();int main(){int q;jiazai(stu,&n);caidan();scanf("%d",&q);while(q>6) { printf("输入错误请重新输入\n请输入0-6的数字\n");scanf("%d",&q); }Sleep(300);system("cls");switch(q) {case 1 :tianjia(stu,&n);break;case 2:xiugai(stu,n);break;case 3:paixu(stu,n);break;case 4:find(stu,n);break;case 5:shanchu(stu,&n);break;case 6:output(stu,n,0);break;case 0:exit(0); }return 0;}void caidan(){ printf("┌────────────────────────┐\n"); printf("├───────欢迎进入学生信息管理系统─────┤\n"); printf("├────────────────────────┤\n"); printf("│ 1添加学生成绩 │\n"); printf("├────────────────────────┤\n"); printf("│ 2修改学生成绩 │\n"); printf("├────────────────────────┤\n"); printf("│ 3排序 │\n"); printf("├────────────────────────┤\n"); printf("│ 4查找 │\n"); printf("├────────────────────────┤\n"); printf("│ 5删除 │\n"); prin