- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- cod污染治理设施建设和运行成本分析.docx
- co2压缩机维修保养作业指导书.docx
- cnc生技作业指导书.docx
- coolscan端口扫描器操作手册.docx
- cok士兵能力指数详情.docx
- cng汽车的结构与原理.docx
- coppa01pa组织机构职责.docx
- cors技术在城市勘测中的应用.docx
- coreldraw印刷发片菲林注意点的归纳.docx
- coreldraw认证考试试题样卷.docx
- 2025年新人教版历史8年级上册全册课件.pptx
- 外研版高中英语选择性必修第一册全册教学课件.pptx
- 2025年新冀教版英语8年级上册全册教学课件.pptx
- 2025年新人教版语文8年级上册全册同步教学课件(考点精讲版).pptx
- 2025年新人教版语文8年级上册全册同步课件(考点精讲版).pptx
- 2025年新人教版语文8年级上册整册同步课件(考点精讲版).pptx
- 2025年新人教版语文8年级上册全册教学课件(考点精讲版).pptx
- 2025年秋季人教版英语八年级上册同步教学课件.pptx
- 2024年秋季学期新沪科版8年级上册物理全册教学课件.pptx
- 2024年秋季学期新沪科版8年级上册物理全册课件.pptx
文档评论(0)