您好,欢迎来到九壹网。
搜索
您的当前位置:首页C语言写的学生成绩管理系统链表

C语言写的学生成绩管理系统链表

来源:九壹网
C语言写的学生成绩管理系统链表

2020年4月19日

1

文档仅供参考

#include#include#include

struct stud{

long num;char name[20];float sx;float dx;float ts;float dl;float cx;float zf;float pj;};

struct studcode{

struct stud student;struct studcode *next;};

void menu();

void input(struct studcode **);void output(struct studcode *);

2020年4月19日

2

文档仅供参考

void binsearch(struct studcode *);void insert(struct studcode **);void delet(struct studcode **);void good(struct studcode *);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\");

input(&head);

while (flag)

{

system(\"cls\");

menu();

2020年4月19日

3

文档仅供参考

printf(\"请选择:\");getchar();choose=getchar();

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();

2020年4月19日

4

文档仅供参考

case '0':

拜拜!错误,请重选

break; case '5':

good(head); back(); break; case '6':

fail(head); back(); break; case '7':

sort(head); output(head); back(); break;

flag=0;

printf(\"\\n *** The End! ***\\n\"); printf(\"\\n ####

感谢使用,欢迎再次登录,

####\\n\");

break;

default: printf(\"\\n Wrong Selection !

(选择

)\\n\");

5

2020年4月19日

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 91gzw.com 版权所有 湘ICP备2023023988号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务