{
system ("color d");
printf (" ****************************************************************\n");
printf (" * ******************************************************** *\n");
printf (" * * ********************************* * *\n");
printf (" * * * T R A N Q U I L * * *\n");
printf (" * * * * * *\n");
printf (" * * * * * *\n");
printf (" * * * P A R A D I S E * * *\n");
printf (" * * * * * *\n");
printf (" * * * * * *\n");
printf (" * * * H O T E L * * *\n");
printf (" * * ********************************* * *\n");
printf (" * ******************************************************** *\n");
printf ("*****************************************************************\n");
system ("pause\n");
}
void login ()
{
system ("cls");
int count;
long int pass = {12345678};
printf ("Enter password\n\n");
scanf ("%d", &pass);
for (count=1; count <=1; count++)
{
if (pass == 12345678)
{
printf ("\n\nLoading...................\n\n");
system ("pause");
WelcomeScreen ();
}
else
{
printf ("Incorrect password. Try Again!!\n\n");
system ("pause");
login ();
}
}
}
char WelcomeScreen ()
{
printf (" *********************************************************************\n");
printf (" * *\n");
printf (" * W E L C O M E *\n");
printf (" * *\n");
printf (" * T O *\n");
printf (" * *\n");
printf (" * T R A N Q U I L P A R A D I S E H O T E L *\n");
printf (" * *\n");
printf (" * H O T E L M A N A G E M E N T S Y S T E M *\n");
printf (" * *\n");
printf (" * *\n");
printf ("**********************************************************************\n");
printf ("\n");
printf ("\n\tPlease select your option from the list below\n\n\n");
printf ("\t 1. Add new record\n");
printf ("\t 2. View Records\n")
printf ("\t 3. Update/Edit Record\n");
printf ("\t 4. View rooms availiable\n");
printf ("\t 5. Exit\n");
system ("pause\n");
system ("CLS");
printf ("Enter your option\n\n");
int choice;
scanf ("%d",&choice);
switch (choice)
{
case 1:newrec();
break;
case 2:rec();
break;
case 3:edit();
break;
case 4:rooms();
break;
default:
printf ("\n INVALID SELECTION\n");
system ("pause\n");
return 0;
}
void newrec()
{
clrscr();
int r,flag;
ofstream fout("Record.dat",ios::app);