实验序号:14实验项目名称:期末大作学号2016210556姓名韩雪萍实验地点 文科楼 222指导教师 康凯专业班16级时间 2017.12.28宁夏师范学院数学与计算机科学学院《数据结构实验》实验报告一、实验目的二、实验要求三、实验设备(环境)及要求1•环境要求:硬件:PC(PII 以上,128M 以上内存);软件:WindowsXP 及以上操作系统、VisualC++6.0 版本。四、实验内容、步骤与结果期末大作业:单位员工通讯录管理系统(线性表应用)问题描述与要求为某个单位建立一个员工通讯录管理系统,可以方便查询每一个员工的办公室电话、手机号、及电子邮箱。其功能包括通讯录链表的建立、员工通讯信息的查询、修改、插入与删除、以及整个通讯录表的输出。实现提示可以采用单链表的存储结构,如可定义如下的存储结构:tedestruct 员工通讯信息的结构类型定义chrnu5 员工编号chrne10 员工姓名chrhone15 办公室电话号码chrell15 手机号码te通讯录单链表的结点类型tedestructnodetedt 结点的数据域structnodenet 结点的指针域istodeinist五、程序实现(写出每个操作的算法)#includevstdio・h>#include#includevstdlib・h>typedefstruct{charnum[5];charname[15];charphone[13];charcall[15];chare_mail[30];[datatype;typedefstructnode{datatypedata;structnode*next;}Dnode;Dnode*head;Dnode*p;typedefstructnodelinklist;intmenu();Dnode*createlist();voidAdd(Dnode*head,Dnode*p);Dnode*research(Dnode*head);voidDelete(Dnode*head);voidprint_list(Dnode*head);Dnode*Change(Dnode*head,chark[]);voidSaveandfree();voidOpen();intmenu(){inti;printf("H\.printf("\n");7?printf("通讯录系统清单\n");printf("\n");printf("printf("\n");~~~~~~~~~丿;printf("1.通讯录的建立");printf("\n");printf("2•添加人员信息");printf("\n");printf("3.删除人员信息");printf("\n");printf("4.查询人员信息");printf("\n");printf("5.输出人员信息");printf("\n");printf("6.修改人员信息");printf("\n");printf("0.退出并保存");printf("\n");printf("请选择 0-6:");scanf("%d",&i);while(iv0lli>6){printf("系统提示:您输入错误!\n");printf("请重新输入 0-6:");scan^"%d",&i);printf("\n\n");}returni;}Dnode*createlist(){Dnode*head=(Dnode*)malloc(sizeof(Dnode));Dnode*p;Dnode*rear;charc='n';rear=head;while(c=='n'){p=(Dnode*...