+ All Categories
Home > Documents > c++ Project on Hotel Management

c++ Project on Hotel Management

Date post: 13-Jul-2015
Category:
Upload: ajinghosh
View: 174 times
Download: 5 times
Share this document with a friend
Popular Tags:

of 61

Transcript

// PROJECT ON HOTEL MANAGEMENT #include #include #include #include #include #include #include #include #include #include #include fstream f,f1,f2,f3,f4,f5,f6,f7,f8; //********************************************************** // CLASS NAME : Hotel // DETAILS : IT CONTROLS OVER ALL FUNCTIONING // OF THE HOTEL //********************************************************** class HOTEL { char array[100]; struct bill_restaurant_bar { long brestaurant,bbar; } b[100]; struct booking_data { long charge,roomno; char name[25],address[75],telno[10],date[11],roomtype[15]; } d; struct check_out_data { char name[25],address[75],telno[10],date[11],odate[11],otime[6]; int roomno; } C; struct cancellation_data { char name[25],address[75],telno[10]; } D; struct member_swimming_pool_data { char name[25],address[75],telno[10],date[11]; int memno; } ms; struct member_gym_data { char name[25],address[75],telno[10],date[11]; int memno; } mg; public: void booking(); void check_in(); void check_out(); void cancellation();

}

void void void void void void void H;

taxi_service(); restaurant(); bar(); swimming_pool(); gymnasium(); games(); view_data();

//********************************************************** // FUNCTION NAME : BOOKING //********************************************************** void HOTEL::booking () { textcolor(2); clrscr(); int c=0; //FINDING AN UNOCCUPIED ROOM f.open("ARRAY.DAT",ios::in|ios::binary); f.read((char *)&array,sizeof(array)); while(array[c]!='e') c++; array[c]='o'; f.close(); f.open("ARRAY.DAT",ios::out|ios::binary); f.write((char *)&array,sizeof(array)); f.close(); f1.open("HOT.EL",ios::app|ios::binary); d.roomno=c+1; //DATA OF THE CUSTOMER cout


Recommended