-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.c
41 lines (40 loc) · 931 Bytes
/
project.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <stdio.h>
#include <stdlib.h>
#include "splash.h"
#include <unistd.h>
#include "login.h"
#include "menu.h"
int splashscreen(void);//for splash screen
int username_password(char username[50],char password[50]);//for login option
void mainMenu(void);//menu driven
void menu(void);//menu for reservation
int flightSchedule(void);
int reservation(void);
void printTicket(void);
int checkid(int id);
int exitScreen(void);//exiting the screen
int main(void)
{
splashscreen();
sleep(5);
system("cls");
sleep(2);
char username[50];
char password[50];
int login_success=0;
do{
printf("Enter required username:\n");
gets(username);
printf("Enter your password:\n");
gets(password);
login_success=username_password(username,password);
}while (login_success==0);//ask for the username and password
mainMenu();
menu();
flightSchedule();
reservation();
printTicket();
checkid(0);
exitScreen();
return 0;
}