第一范文网 - 专业文章范例文档资料分享平台

数据结构课程设计 学生成绩管理系统

来源:用户分享 时间:2025/5/18 16:18:31 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

}

}

}

}

t2=q->next;

p->next=p->next->next; q->next=q->next->next; t1->next=q->next; q->next=t1; t2->next=p->next; p->next=t2;

break;

case 3: }

Queue_Subject(L); //科目排序 break;

void Out_one_Student(LinkList *L,int i) //输出第i个学生 {

int j=0; LinkList *p=L; while(j

printf(\

j++; p=p->next;

e,p->score[0],p->score[1],p->score[2],p->all_score,p->ave_score);

}

int Seek_Student(LinkList *L) //查找学生 1 按学号查找 2 按姓名查找 {

26

}

int m;

printf(\按学号查找 2 按姓名查找 3 退出\\n请输入:\scanf(\switch(m) { case 1:

char a[12];

printf(\输入学号:\scanf(\

return (Locate_Student(L,a)); //返回学号查找到的值 break;

case 2:

char b[20];

printf(\输入姓名:\scanf(\

return(Locate_Student1(L,b)); break;

case 3: }

break;

void Filter_Student(LinkList *&L) //筛选 {

LinkList *s,*p=L->next,*r,*q; int y,count2=0;

printf(\按总分选 2 全部及格的人 3 按各科成绩 4 退出\\n请输入:\scanf(\switch(y) { case 1:

s=(LinkList *)malloc(sizeof(LinkList));

27

q=s; int i; float all;

printf(\您要总分多少分以上的人,请输入:\scanf(\

for (i=0;inext) { }

output_Student(s,count2); free(s); break;

28

if (p==NULL) { }

if(p->all_score>all) { }

r=(LinkList *)malloc(sizeof(LinkList)); strcpy(r->mun,p->mun); strcpy(r->name,p->name); r->score[1]=p->score[1]; r->score[2]=p->score[2]; r->score[0]=p->score[0]; r->all_score=p->all_score; r->ave_score=p->ave_score; q->next=r; q=q->next; q->next=NULL; count2++; printf(\没有\return;

case 2:

s=(LinkList *)malloc(sizeof(LinkList)); q=s; int j;

for (j=0;jnext) { }

output_Student(s,count2); free(s); break;

29

if (p==NULL) { }

if(p->score[0]>59&&p->score[1]>59&&p->score[2]>59) { }

r=(LinkList *)malloc(sizeof(LinkList)); strcpy(r->mun,p->mun); strcpy(r->name,p->name); r->score[1]=p->score[1]; r->score[2]=p->score[2]; r->score[0]=p->score[0]; r->all_score=p->all_score; r->ave_score=p->ave_score; q->next=r; q=q->next; q->next=NULL; count2++; printf(\没有\return;

case 3:

s=(LinkList *)malloc(sizeof(LinkList)); q=s; int k,x;

printf(\选择 1 数据结构及格的 2 数字信号处理及格的 3 数电及

格的\\n\

printf(\请输入:\scanf(\

for (k=0;knext) { }

30

if (p==NULL) { }

if(p->score[x-1]>59) { }

r=(LinkList *)malloc(sizeof(LinkList)); strcpy(r->mun,p->mun); strcpy(r->name,p->name); r->score[1]=p->score[1]; r->score[2]=p->score[2]; r->score[0]=p->score[0]; r->all_score=p->all_score; r->ave_score=p->ave_score; q->next=r; q=q->next; q->next=NULL; count2++; printf(\没有\return;

数据结构课程设计 学生成绩管理系统.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5dr3b2llfr6msok1o3yz_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top