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

C语言学生成绩管理系统课程设计报告 - 图文 

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

.

‘5’ ‘6’ ‘7’ 与‘1’同理 与‘1’同理 与‘1’同理 struct student *sort(struct student *); struct student *p1,*p2,*t,*temp; temp=head->next; head->next=NULL; while(temp!=NULL) t=temp; temp=temp->next; p1=head; p2=head; while(t->averaver&&p1!=NULL) N .

p2=p1; p1=p1->next; p1==p2? Y .

t->next=p1; p2->next=t; p1=head; while(p1!=NULL) p1=p1->next; clrscr();formhead();print(head); return(head); struct student *insert(struct student *); struct student *p,*q,*hed; hed=head; p=creat(); /*建链表*/ q=findw(head); /*找出传进来链表的表尾*/ N t->next=p1; head=t; q=NULL? Y q->next=p; return hed==NULL?p:hed; void input(struct student *); float temp; char c; clrscr(); printf(\scanf(\ 直到确认 printf(\ scanf(\ .

.

直到确认 c=getchar(); p->sex=c>'a'?c-32:c; 直到(p->sex=='M'||p->sex=='W') printf(\scanf(\ 直到确认 p->math=temp; 下面成绩同理

void putout(struct student *);

printf(\ p->num,p->name,p->sex,p->math,p->english,p->cp,p->computer,p->hthy,p->history,p->aver); printf(\---+------+------+\void print(struct student *); struct student *p; p=head; N .

p!=NULL Y .

putout(p);p=p->next; 直到p为空 getch(); int sure(); har c; getchar(); printf(\list!\\n\a empty printf(\c=getch(); N c==27 return 0; Y return 1; void frees( struct student *); struct student *p; p=head; while(p!=0) free(p); p=p->next; head=NULL; struct student *creat(void);

char c; struct student *p1,*p2,*head; int n=0,flag=1; p1=p2=(struct student *)malloc(LEN); head=NULL; input(p1); while(flag) .

.

n=n+1; n==1?head=p1:p2->next=p1; p2=p1; if(flag==1) printf(\if(flag==2) printf(\c=getch(); N (c=='N'||c=='n'||c=='Y'||c=='y')? Y flag=2; N c=='Y'||c=='y'? Y flag=0; p1=(struct student *)malloc(sizeof(struct student)); input(p1);flag=1; p2->next=NULL; return (head); struct student *load(void);

struct student *p1,*p2,*head=NULL; FILE *fp; N fp=fopen(\printf(\Y .

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