Professional Documents
Culture Documents
#include<fstream>
#include<windows.h>
#include<string>
using namespace std;
struct Name
// structure for naming in program
{
char first[20];
//character arrays for the names used in program..
char last[20];
char date[20];
int room;
char cnic[20], mob[20];
};
//\\Functions prototyping//\/\\
void vacant_rooms();
void customer_reserve();
void login();
void check();
void user_total();
heckout
void loading();
void help();
te the application
void about();
void del_resdata();
//------------------------.>//
int main()
{
system("color 34");
int a;
int choice;
char again;
char x[20];
cout << endl;
cout << "
*
*
"
<< endl;
cout << "
**
* " <
< endl;
cout << " *** Welcome to the Hotel Reservation Application ****" << en
dl;
cout << "
**
** "
<< endl;
cout << "
*
* " <
< endl;
cout << endl;
Beep(2020, 1100);
// causes the computer to beep
char l = 219;
//for loading bar
cout << "Please wait while system is analyzing the data\n";
for (int i = 0; i<10; i++)
{
Beep(2000, 500);
cout << l;
}
cout << endl;
cout << "______________________________" << endl;
cout << "Please Enter Username and Password to proceed: " << endl;
cout << endl;
login();
//function calling of login
cout << "______________________________" << endl;
cout << endl;
do
{
system("pause");
}