好文档 - 专业文书写作范文服务资料分享网站

C语言数据库-学生成绩统计管理系统

天下 分享 时间: 加入收藏 我要投稿 点赞

学生成绩统计管理系统

C语言数据结构课程作品

指导老师: 学生: 学号: 班级:

一、代码

#include \

#include #include #include #include #include #include #include

struct grade {

int score;

struct grade *next;

}; /*定义成绩的结构*/

struct address{ char stu_num[4]; /*学号*/ char hname[10]; /*性别*/ char ename[20]; /*姓名*/ char depart[30]; /*系别*/ char paddress[30]; /*地址*/ char phone[13] /*联系电话*/; struct grade *head; struct address *next; } ;

void loaddata (struct address **had); void printm (struct address *head);

struct address * seek (struct address *head); void revise (struct address *hp); void delate (struct address **head); void saveda (struct address *tou ); void addnew (struct address **had ); void moveg (int i,struct grade **move); void gotoxy(int x,int y);

void sortp(struct address **head);

int main ( void ) {

char ch; int c;

struct address *head=NULL; loaddata(&head); do {

system(\); printf(\);

printf(\学生信息与成绩统计:\\n\);

printf(\岳鹏程制作\\n\); printf(\); printf(\‖ Menu: ‖\\n\); printf(\‖ 1:print all the personal information. ‖\\n\); printf(\‖ 2:insert some or one person. ‖\\n\); printf(\‖ 3:revire some information. ‖\\n\); printf(\‖ 4:delate some information or a person. ‖\\n\); printf(\‖ 5:exit. ‖\\n\); printf(\); printf(\);

do

{

scanf(\,&c); getchar( ); }while(c<0||c>6);

switch ( c ) {

case 1:

printm(head); break; case 2:

addnew(&head); break; case 3:

revise(head); break; case 4:

delate(&head); break; break; case 5:

return 0;

default:

break;

383w43ewr11oirv32mbx
领取福利

微信扫码领取福利

微信扫码分享