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日