?? rstatus.cpp
字號:
#include<stdio.h>
#include<conio.h>
void rstatus()
{
int no;
CUST c;
FILE *cust;
clrscr();
panel();
statusbar("Room Information ");
cust=fopen("c:\\hotel\\database\\checkin.dat","rb");
gotoxy(6,6);
printf("Enter the Room No. :-> ");
scanf("%d",&no);
while(fread(&c,sizeof(c),1,cust)==1)
{
if(c.rno==no)
{
gotoxy(6,8);
printf("Customer Name :-> %s ",c.name);
gotoxy(6,10);
printf("Customer ID :-> %s ",c.cid);
gotoxy(6,12);
printf("Check in Date :-> %d-%d-%d ",c.cin.da_day,c.cin.da_mon,c.cin.da_year);
gotoxy(6,14);
printf("Expected Check out Date :-> %d-%d-%d",c.cout.da_day,c.cout.da_mon,c.cout.da_year);
statusbar("Press Any Key to Return ... ");
getch();
return;
}
}
statusbar("Either Room No. Not Found or Room Is Not Reserved ...");
getch();
statusbar(" ");
return;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -