Page 469 - C++
P. 469
Banquet Hall Management
A project to store record of menu card, party card and booking.
struct item_B
{
int Party Card_no;
char Description[20],remark[30];
float price;
};
struct date
{
int dd,mm,yy,time_slot;
};
class PartyMenu
{
char Party_code;
Party Card_b I[20];
char Party_type[20];
int duration;
public:
void MGetdata();
void MDisplaydate();
char * Return_Partytype{ return Party_type; }
};
class Party_booking
{
int Party_code;
date P_date;
float advance;
char cust_name[30],address[30],phone[10],mobile[15];
public:
void PBgetdata();
void Ldisplay();
int check_opartytiming(date dt)
{ if(dt.dd==P_date.dd &&dt.mm = =P_date.mm && dt.yy ==P_date.yy&&
dt.time_slot==P_date.time_slot)
return 1;
else
return 0; }
};