[工学]数据结构课程设计——图书管理信息系统内容摘要:
me)。 scanf(%d,amp。 [i].bn1)。 [i].bn2=0。 //将已借书数置 0 for(int j=1。 ji。 j++) if(strcmp([i].rno,[j].rno)==0amp。 amp。 strcmp([i].name,c[j].name)==0) {cout已有该读者的信息 ,请重新输入 !endl。 i=。 break。 } cout继续输入吗 ?y/n:。 cinyn。 i++。 } =i1。 } /* 读入盘中各类文件 */ void readfile(BookDbaseFile amp。 bf,BnoIdxFile amp。 bif,LHFile1 amp。 f1,LHFile2 amp。 f2,LHFile3 amp。 f3,ReadFile amp。 rf,BbookFile amp。 bbf) { FILE *fpout。 int i。 //读图书文件 fpout=fopen(book,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BookRecType),1,fpout)。 i++。 if(feof(fpout))break。 } =i1。 fclose(fpout)。 //读书号索引文件 fpout=fopen(bidx,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BidxRecType),1,fpout)。 i++。 if(feof(fpout))break。 } =i1。 fclose(fpout)。 //读书名索引链头文件 fpout=fopen(nidx,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BNRecType),1,fpout)。 i++。 } =i1。 fclose(fpout)。 //读作者索引文件 fpout=fopen(aidx,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BARecType),1,fpout)。 i++。 } =i1。 fclose(fpout)。 //读出版社索引链头文件 fpout=fopen(pidx,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BPRecType),1,fpout)。 i++。 } =i1。 fclose(fpout)。 //读读者文件 fpout=fopen(read,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(RRecType),1,fpout)。 i++。 } =i1。 fclose(fpout)。 //读借还书文件 fpout=fopen(bbff,rb)。 if(fpout==NULL) { printf(Cannot open this file !\n)。 exit(0)。 } i=1。 while(!feof(fpout)) {fread(amp。 [i],sizeof(BbookRecType),1,fpout)。 i++。 } =i1。 fclose(fpout)。 } // /*(1)书号查询算法 .用二分法查找实现书号查询算法如下 */ int BinSearch(BnoIdxFile bif,char key[]) { int low,high,mid。 low=1。 high=。 while(low=high){ mid=(low+high)/2。 if(strcmp(key,[mid].bno)==0)return [mid].RecNo。 else if(strcmp(key,[mid].bno)0) high=mid1。 else low=mid+1。 } return 0。 }//BinSearch /*(2)按书名查询算法 */ int BnameFind(LHFile1 lhf1,char key[]) {int i,k=0。 for(i=1。 i=。 i++) {if(strcmp(key,[i].bname)==0) { k=[i].lhead。 break。 } }return k。 } /*(3)按作者查询算法 */ int BauthFind(LHFile2 lhf2,char key[]) {int i,k=0。 for(i=1。 i=。 i++) {if(strcmp(key,[i].author)==0) { k=[i].lhead。 break。 } } return k。 } /*(4)按出版社查询算法 */ int BnameFind(LHFile3 lhf3,char key[]) {int i,k=0。 for(i=1。 i=。 i++) { if(strcmp(key,[i].press)==0) {k=[i].lhead。 break。 }} return k。 } /*(5)输出一条图书主数据库记录 */ void ShowRec(BookDbaseFile df,int i) { printf(书号 书 名 作者名 出版社 分类号 \n)。 printf(==============================================\n)。 printf(%6s%10s,[i].bno,[i].bname)。 printf(%8s%8s,[i].author,[i].press)。 printf(%6s\n,[i].sortno)。 printf(==============================================\n)。 coutendl。 } /*(6)图书查询控制程序 */ void SearchBook(BookDbaseFile df,BnoIdxFile bif,LHFile1 f1,LHFile2 f2,L。[工学]数据结构课程设计——图书管理信息系统
相关推荐
ciple of SPC technology basic specifically describes the process of knowledge production and the leaf tobacco threshing and redrying process quality , the production of SPC principles and the leaf
划信息二级细化数据流图投资计划信息数据流图Figure 38 Financial planning information secondary refining data flow chart Investment plan information data flow diagram事务过往收入清单收入信息收入信息收入信息用户用户 收入信息事务处理 信息存入系统 D15收入记录 D16
问题,并做好详细记录。 通过认真讨论研究,由图纸预图纸会审规定 版本: A 修改状态: 第 2 页 共 3 页 审工作主持人集中正确意见,并指定专人分类整理成文,为图纸会审做好准备。 主要审查内容如下: a) 尺寸、标高是否正确一致。 b) 水、暖、电、卫及设备安装等各专业图纸之间,前后图之间是否有矛盾。 c) 预留洞、预埋件是否错漏,构造作法是否交代清楚。 d) 材料选用是否合理
己团队开发一个技术架构,需要项目的技术领导者进行探讨,并有必要对这些结构进行一些性能方面的测试。 编码主要是把前面分析的功能点一一进行实现。 质量保证任务: 实现也就是代码的生产过程。 这里不仅包括代码的产生,同时也包括测试用例的产生。 针对上一阶段提供详细设计,程序员开始编码并且调试程序,测试人员则根据设计进行测试用例的设计,设计出来的用例需要得到项目组成员认可由项目经理审核通过才能进入配置库
孔桩 3 根,完成产值约 100 万元。 并且在桥队中,我们始终以经营者的观念进行工程的施工与管理:对内提出精细化管理与成本控制;对外,我们提出了机械外租、商品混凝土输出等联系自身特点的多元化经营理念,让所有机械能创造出工程外的利润。 随着桥队人员和机械设备的增加,在 7 月底桥队的生产安排会上,我们和施工队都提出了 8 月份展开施工大干的热潮。 并且我们在现场也做到了这一点:从 8月 1日至
anageTime Variable characters (20) 20 账目编号 accountNumber Variable characters (20) 20 货架编号 shelfNumber Variable characters (20) 20 起始日期 startTime Variable characters (20) 20 起始日期 dateStart Variable