1 / 15
文档名称:

学生成绩管理系统源代码.doc

格式:doc   大小:73KB   页数:15页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

学生成绩管理系统源代码.doc

上传人:cby201601 2020/2/3 文件大小:73 KB

下载得到文件列表

学生成绩管理系统源代码.doc

相关文档

文档介绍

文档介绍:#include<>#include<>#include<>#include<>structstudent//结构体定义{ intnum;charname[10]; charbirthday[10]; intCyuyan;intshujujiegou; structstudent*next;}; structstudent*creat_by_input(); structstudent*get_last_student(structstudent*head); structstudent*Print_menu_main()//主菜单{ printf("*********************************************************************\n"); printf("|1.........输入学生信息|\n");printf("|2.........输出学生信息|\n");printf("|3.........查找学生信息|\n");printf("|4.........修改学生信息|\n");printf("|5.........插入学生信息|\n");printf("|6.........删除学生信息|\n");printf("|7.........排序学生信息|\n");printf("|0.........退出系统|\n");printf("|_____________|\n");} structstudent*print_table_head() { printf("+----------+----------+----------+----------+-------------+\n"); printf("|学号|姓名|出生日期|c成绩|数据结构成绩|\n"); printf("+----------+----------+----------+----------+-------------+\n"); } structstudent*print_table_row(structstudent*p) { printf("|%10d|%10s|%10s|%10d|%10d|\n",p->num,p->name,p->birthday,p->Cyuyan,p->shujujiegou); } voidprint_table_bottom() { printf("+----------+----------+----------+----------+-------------+\n"); } structstudent*Creat_stu_record()//建立链表 { structstudent*plaststu=NULL,*pnewstu; charcontinue_input='N';structstudent*head=NULL; while(1) { if(head==NULL) { head=creat_by_input(); print_table_head(); print_table_row(head); print_table_bottom(); } else { pnewstu=creat_by_input(); print_table_head(); print_table_row(pnewstu); print_table_bottom(); plaststu=get_last_student(head); plaststu->next=pnewstu;} printf("是否继续输入学生信息?(Y继续,N返回菜单)\n"); getchar(); continue_input=getchar(); if(continue_input=='n'||continue_input=='N') { system("cls"); Print_menu_main(); break; } } returnhead;} structstudent*creat_by_input() { structstudent*pnewstu=(structstudent*)malloc(sizeof(structstudent)); printf("请输入学生信息\n"); printf("学号:");scanf("%d",&pnewstu->num); printf("姓名:");scanf("%s",pnewstu->name); printf("出生年月:");scanf("%s",pnewstu->birthday); printf("请输入学生成绩\n"); printf("C语言:");sca