⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rstatus.cpp

📁 Hotel Management System in c++
💻 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 + -