宾馆房间管理系统课程设计报告c语言版内容摘要:

课程设计纸 共 21 页 第 10 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ if((i+1)%10==0) /*判断输出是否达到 10 条记录 */ { printf(Press any key continue...\n)。 /*提示信息 */ getch()。 /*压任意键继续 */ } printf(*************end************\n)。 getch()。 } /*查找记录 */ void search(ADDRESS t[],int n) { int statue=1。 char s[80]。 int c。 while(statue){ c=menu_search()。 while(c==1){ char lsroomID[10]。 int i。 int arrayPosition[M]。 int point=0。 clrscr()。 printf(please input the room ID you want to search or edit\n)。 scanf(%s,lsroomID)。 for (i=0。 i=n。 i++){ if(strcmp(lsroomID,t[i].roomID)==0){ arrayPosition[point]=i。 point++。 } 长 春 大 学 课程设计纸 共 21 页 第 11 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ } if (point!=0){ int statue=1。 int currentpoint=0。 char getkey。 while(statue){ clrscr()。 printf( roomID Islent lender CardNumber\n)。 for (i=0。 ipoint。 i++){ if (currentpoint==i){ if(t[arrayPosition[i]].isLent!=0){ printf(%10s %10s %10s %10s\n,t[arrayPosition[i]].roomID,x,t[arrayPosition[i]].lender,t[arrayPosition[i]].ccard)。 } else { printf(%10s\n,t[arrayPosition[i]].roomID)。 } } else{ if(t[arrayPosition[i]].isLent!=0){ printf( %10s %10s %10s %10s\n,t[arrayPosition[i]].roomID,x,t[arrayPosition[i]].lender,t[arrayPosition[i]].ccard)。 } else { printf( %10s\n,t[arrayPosition[i]].roomID)。 } } } if (t[arrayPosition[currentpoint]].isLent) {printf( back )。 } else {printf( )。 } 长 春 大 学 课程设计纸 共 21 页 第 12 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ do {getkey=getch()。 } while(getkey!=39。 w39。 amp。 amp。 getkey!=39。 s39。 amp。 amp。 getkey!=39。 139。 amp。 amp。 getkey!=39。 039。 )。 if (getkey==39。 s39。 amp。 amp。 currentpointpoint1) currentpoint++。 if (getkey==39。 w39。 amp。 amp。 currentpoint0) currentpoint。 if (getkey==39。 039。 ){statue=0。 c=0。 } if (getkey==39。 139。 ){ if( t[arrayPosition[currentpoint]].isLent){t[arrayPosition[currentpoint]].isLent=0。 }else{ t[arrayPosition[currentpoint]].isLent=1。 clrscr()。 printf(please input lender\n)。 scanf(%s,t[arrayPosition[currentpoint]].lender)。 printf(please input lender39。 s credit card number\n)。 scanf(%s,t[arrayPosition[currentpoint]].ccard)。 } } } } else{ printf(could find math record)。 getch()。 c=0。 } 长 春 大 学 课程设计纸 共 21 页 第 13 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ } while(c==2){ char lslender[10]。 int i。 int arrayPosition[M]。 int point=0。 clrscr()。 printf(please input the lender name you want to search or edit\n)。 scanf(%s,lslender)。 for (i=0。 i=n。 i++){ if(strcmp(lslender,t[i].lender)==0){ arrayPosition[point]=i。 point++。 } } if (point!=0){ int statue=1。 int currentpoint=0。 char getkey。 while(statue){ clrscr()。 printf( roomID Islent lender CardNumber\n)。 for (i=0。 ipoint。 i++){ if (currentpoint==i){ if(t[arrayPosition[i]].isLent!=0){ printf(%10s %10s %10s %10s\n,t[arrayPosition[i]].roomID,x,t[arrayPosition[i]].lender,t[a长 春。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。