c语言数据库-学生成绩统计管理系统.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
学生成绩统计管理系统 C 语言数据结构课程作品 指导老师 : 学生: 学号: 班级: 、代码 #include stdafx 、 h #include stdio 、 h #include malloc 、 h #include memory、 h #include string 、 h #include conio 、 h #include stdlib 、 h #include windows、 h 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 void delate ( struct void saveda ( struct void addnew ( struct address *hp); address **head); address *tou ); 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( cls ); printf( \n ); printf( 学生信息与成绩统计 :\n ); printf( 岳鹏程制作 \n ); printf( ===============================================)\;n printf( II Menu: II \n); printf( II 1:print all the personal information 、 II \n); printf( I 2:insert some or one person 、 I \n ); printf( I 3:revire someinformation 、 I \n ); printf( I 4:delate some information or a person 、 I \n ); printf( I 5:exit 、 I \n ); printf( ===============================================)\;n printf( \tInput : ); do { scanf( %d,c); getchar( ); } while (c0||c6); 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; } fflush(stdin); );printf( continue or not: input y or n\n ch=getchar( ); saveda(head); ); } while (ch==y ||ch== Y ); return 0; void loaddata ( struct address **had ) { FILE *afhead; FILE *gfhead; struct address *p1,*hp1=NULL,*head=NULL; struct grade *p2 , *hp2 = NULL; int i=0; int j=6; if ( !(afhead = fopen( d:\\information 、dat ,rb ))) { ret

文档评论(0)

xiaozu + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档