当前位置:首页 > C语言写的学生成绩管理系统(链表)
#include<> #include<> #include<>
struct stud{ };
struct studcode{ };
void menu();
void input(struct studcode **); void output(struct studcode *); void binsearch(struct studcode *); void insert(struct studcode **); void delet(struct studcode **); void good(struct studcode *);
struct stud student; struct studcode *next; long num; char name[20]; float sx; float dx; float ts; float dl; float cx; float zf; float pj;
void fail(struct studcode *); void sort(struct studcode *); void back();
void main() {
char choose; int flag=1;
struct studcode *head; head=NULL;
printf(\请先录入学生成绩信息\\n\
printf(\输入学生学号 姓名 高数、英语读写、英语听说、计算机导论和程序设计的成
绩\\n\
while (flag)
{
system(\
menu(); printf(\请选择:\ getchar(); choose=getchar();
input(&head);
switch(choose) {
case '1':
output(head);
back(); break;
case '2':
binsearch(head); back(); break;
case '3':
insert(&head); output(head); back(); break;
case '4':
delet(&head); output(head); back(); break;
case '5':
good(head); back(); break;
case '6':
fail(head); back(); break;
case '7':
sort(head); output(head);
back(); break;
case '0': }
void menu() {
printf(\学生成绩统计与分析系统\\n\ printf(\菜 单\\n\\n\ printf(\显示所有学生的信息\\n\ }
flag=0;
printf(\
printf(\感谢使用,欢迎再次登录,拜拜!####\\n\ break;
default: printf(\(选择错误,请重选 )\\n\ }
back();
printf(\查找某学号的学生信息\\n\
printf(\插入某学生的信息 \\n\ printf(\删除某学号学生的信息\\n\
printf(\统计各门课程成绩在90分以上学生所占百分比\\n\ printf(\统计各门课程成绩在60分以下学生所占百分比 \\n\ printf(\按总分降序排序,依高低排出名次 \\n\ printf(\退出 \\n\\n\
共分享92篇相关文档