数据结构课程设计报告-学生宿舍管理系统内容摘要:
qnext=p。 q=p。 } fclose(fp)。 } int Display() /*将文件信息显示出来 */ { Stu *head。 Stu *p。 InitStu(amp。 head)。 Read_from_File(head)。 p=headnext。 system(cls)。 if(!p) 14 { printf(Have no element!)。 printf(\nEnd with 39。 ESC39。 )。 getch()。 return 0。 } printf(\n\t\t****欢迎进入学生宿舍管理系统 ****\n\n\n\n)。 printf(学号 姓名 性别 生日(年 _月 _日) 系别 专业 楼号 宿舍号 床号 \n\n)。 while(p) { printf(%8d%8s%4c%6d%5d%8d%12s%8s%8d%8d%5d\n,pNum,pName,pSex, p,p,p,pDepartment,pSubject, p,p,p)。 p=pnext。 } printf(\nEnd with 39。 ECS39。 )。 getch()。 return 1。 } void Delete() /*删除学生信息 */ { Stu *head。 Stu *p,*q。 char ch,h。 int N。 int Build_num,Room_num,Bed_num。 InitStu(amp。 head)。 Read_from_File(head)。 q=head。 p=headnext。 do { system(cls)。 flushall()。 printf(\n\t\t****欢迎进入学生宿舍管理系统 ****\n)。 printf(\n\n\t\ta. 根据学生学号删除 \n)。 printf(\n\n\t\ \n)。 printf(\n\n\t\t请选择删除方式 :)。 ch=getchar()。 while(1) { if(ch==39。 a39。 ) 15 { printf(\n\n请输入学生学号 :)。 scanf(%d,amp。 N)。 while(p) { if(pNum==N) { qnext=pnext。 free(p)。 p=qnext。 printf(删除成功。 )。 break。 } q=p。 p=pnext。 } if( p==NULL) { printf(\n***Not find the student!***)。 break。 } } else if(ch==39。 b39。 ) { printf(\n\n请输入宿舍信息 (楼号 宿舍 床号 ): )。 scanf(%d %d %d,amp。 Build_num,amp。 Room_num,amp。 Bed_num)。 while(p!=NULL) { if(p==Build_num amp。 amp。 p==Room_num amp。 amp。 p) { qnext=pnext。 free(p)。 p=qnext。 printf(删除成功。 )。 break。 } q=p。 p=pnext。 } if(p==NULL) { printf( Not find the student)。 break。 } } break。 } printf(\n\n****继续 ?Y/N)。 16 h=getch()。 }while(h==39。 Y39。 ||h==39。 y39。 )。 Write_to_File(head)。 } void MidInsert() /*中间插入学生信息 */ { Stu *head。 Stu *p,*q。 char ch。 int N。 InitStu(amp。 head)。 Read_from_File(head)。 q=headnext。 system(cls)。 printf(\n\t\t****欢迎进入学生宿舍管理系统 ****\n)。 flushall()。 do { printf(\n\n\t请输入插入位置 : )。 scanf(%d,amp。 N)。 while(q!=NULL) { p=(Stu *)malloc(sizeof(Stu *))。 if(qNum==N) { printf(\t\t 请输入插入的学生信息 :\n )。 flushall()。 printf(\t 学号 :)。 scanf(%d,amp。 pNum)。 flushall()。 printf(\n\t 姓名 :)。 scanf(%s,pName)。 flushall()。 printf(\n\t 性别 :)。 scanf(%c,amp。 pSex)。 flushall()。 printf(\n\t 生日(年 _月 _日) :)。 scanf(%d_%d_%d,amp。 p,amp。 p,amp。 p)。 17 flushall()。 printf(\n\t 系别 :)。 scanf(%s,pDepartment)。 flushall()。 printf(\n\t 专业 :)。 scanf(%s,pSubject)。 flushall()。 printf(\n\t 楼号 :)。 scanf(%d,amp。 p)。 flushall()。 printf(\n\t 宿舍号 :)。 scanf(%d,amp。 p)。 flushall()。 printf(\n\t 床号 :)。 scanf(%d,amp。 p)。 pnext=qnext。 qnext=p。 break。 } p=q。 q=qnext。 } if(q==NULL) printf(\t\t Not find !)。 Write_to_File(head)。 printf(\t 继续 ?Y/N)。 ch=getch()。 }while(ch==39。 y39。 ||ch==39。 Y39。 )。 } Stu *HeadInsert(Stu *top) { Stu *p。 char ch。 InitStu(amp。 top)。 Read_from_File(top)。 system(cls)。 printf(\n\t\t****欢迎进入学生宿舍管理系统 ****\n)。 flushall()。 do { p=(Stu*)malloc(sizeof(Stu))。 pnext=NULL。 printf(\t\t 请输入插入的学生信息 :\n )。 18 flushall()。 printf(\t 学号 :)。 scanf(%d,amp。 pNum)。数据结构课程设计报告-学生宿舍管理系统
相关推荐
if(Stop0) { cout\n车场车位状态 :。 cout\n车位号 \t 到达时间 \t车牌号 \n。 for(i=1。 i=Stop。 i++) { cout i\t。 coutSstack【 i】 时 Sstack【 i】 分。 cout\t Sstack【 i】 num\n。 } } else cout\n车 场里没有车。 } void List2 (LinkQueueCar
已付款项 数量 ( 5)数据结构名称:出库单 简述:登记销售货品信息 组成:商品代码 供应商名称 送货单号 出库日期 价格 已付款项 数量 ( 6)数据结构名称:出库流水账 简述:登记核实销售的商品信息 组成:商品代码 供应商名称 出库日期 价格 已付款项 数量 ( 7)数据结构名称:库存账 简述:库存商品信息 组成:商品代码 名称 库存量 ( 8)数据结构名称:退货表 简述
据库文件在站点内部,它在数据的安全性方面存在一定的缺陷,当服务器受到攻击,重要的数据外泄,造成的后果是无法想象的。 因此,为了增加安全性,必须对数据库中的重要信息进行加密以保证系统的安全。 为了保证数据库中数据的安全性可以对数据库敏感数据加密达到其安全性的目的。 通过查阅相关书籍和资料,了解到md5加密算法是目前较为常用的一种加密算法。 本系统也采用了md5实现对数据库中重要数据的加密。
μ 0 左侧检验:ZZ H0:μ=μ 0 H1:μ>μ 0 右侧检验:ZZ 二、 假设检验的五个步骤: 1) 提出原假设与备选假设。 原则: 把含有等号的式子作为原假设; 从样本做出猜测而希望证实的问题作为备选假设; 2) 选取统计量。 通过选取适当的统计量来构造小概率事件; 3) 按 P(拒绝 H0/H0真)=α确定拒绝域; 4) 计算统计量的值; 5) 做出判断
*/ while(!feof(fp)) {fscanf(fp,%ld\t\t%s\t%s\t%d\t%s\t%s\t%s\t\t%ld\t%ld\t\t\n,amp。 p1no,p1name,p1sex,amp。 p1age,p1xibie,p1zhuanye,p1mianmao,amp。 p1num,amp。 p1bianhao)。 k=k+1。
qnext=p。 snext=q。 p=q。 q=pnext。 } flag=1。 } } 排序算法流程图如图 5 所示: 显 示 排 序 菜 单链 表 是 否 为空选 择 操 作对 工 作 日期 排 序对 出 生 日期 排 序退 出 排序 系 统对 性 别排 序无 职 工信 息是否选 0选 1选 2选 3选 除 上 述 操 作 的 任 意 操 作 图 5 排 序算法程序流程图职工管理系统