C语言写的学生成绩管理系统(链表).doc 立即下载
2024-09-09
约5.3千字
约8页
0
29KB
举报 版权申诉
预览加载中,请您耐心等待几秒...

C语言写的学生成绩管理系统(链表).doc

C语言写的学生成绩管理系统(链表).doc

预览

免费试读已结束,剩余 3 页请下载文档后查看

5 金币

下载文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

/NUMPAGES8
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

structstud{
	longnum;
	charname[20];
	floatsx;
	floatdx;
	floatts;
	floatdl;
	floatcx;
	floatzf;
	floatpj;
};
structstudcode{
	structstudstudent;
	structstudcode*next;
};

voidmenu();
voidinput(structstudcode**);
voidoutput(structstudcode*);
voidbinsearch(structstudcode*);
voidinsert(structstudcode**);
voiddelet(structstudcode**);
voidgood(structstudcode*);
voidfail(structstudcode*);
voidsort(structstudcode*);
voidback();


voidmain()
{
	charchoose;
	intflag=1;
	structstudcode*head;
	head=NULL;
	printf("请先录入学生成绩信息\n");
	printf("输入学生学号高数、英语读写、英语听说、计算机导论和程序设计的成绩\n");
	input(&head);

while(flag)	
	{
		system("cls");
	menu();
	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();
			break;
		case'5':
			good(head);
			back();
			break;
		case'6':
			fail(head);
			back();
			break;
		case'7':
			sort(head);
			output(head);
			back();
			break;
case'0':
			flag=0;
			printf("\n***TheEnd!***\n");
			printf("\n####感使用,欢迎再次登录,拜拜!####\n");
			break;
		default:printf("\nWrongSelection!(选择错误,请重选)\n");
			back();

		}
	}
}




voidmenu()
{
	printf("\n学生成绩统计与分析系统\n");
	printf("\n菜单\n\n");
	printf("\n1.显示所有学生的信息\n");
printf("\n2.查找某学号的学生信息\n");
	printf("\n3.插入某学生的信息\n");
	printf("\n4.删除某学号学生的信息\n");
	printf("\n5.统计各门课程成绩在90分以上学生所占百分比\n");
	printf("\n6.统计各门课程成绩在60分以下学生所占百分比\n");
	printf("\n7.按总分降序排序,依高低排出名次\n");
	printf("\n0.退出\n\n");
}

voidback()
{
	intx;
	printf("\n");
	do{
	printf("按1返回菜单界面:");
	scanf("%d",&x);
	}while(x!=1);

}

voidinput(structstudcode**headp)
{
	structstudcode*p;
	while(1)
	{
		p=(structstudcode*)malloc(sizeof(structstudcode));
		scanf("%ld",&p->student.num);
		if(p->student.num==0)break;
		scanf("%s%f%f%f%f%f",&p->student.name,&p->student.sx,&p->stud
查看更多
单篇购买
VIP会员(1亿+VIP文档免费下)

扫码即表示接受《下载须知》

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

文档大小:29KB

限时特价:扫码查看

• 请登录后再进行扫码购买
• 使用微信/支付宝扫码注册及付费下载,详阅 用户协议 隐私政策
• 如已在其他页面进行付款,请刷新当前页面重试
• 付费购买成功后,此文档可永久免费下载
全场最划算
12个月
199.0
¥360.0
限时特惠
3个月
69.9
¥90.0
新人专享
1个月
19.9
¥30.0
24个月
398.0
¥720.0
6个月会员
139.9
¥180.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用