-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcar.h
More file actions
56 lines (49 loc) · 1008 Bytes
/
Copy pathcar.h
File metadata and controls
56 lines (49 loc) · 1008 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef CAR_H_INCLUDED
#define CAR_H_INCLUDED
#include<time.h>
struct User{
char userid[20];
char pwd[20];
char name[20];
};
struct Car
{
int car_id;
char car_name[50];
int capacity;
int car_count;
int price;
};
struct Customer_Car_Details
{
int car_id;
char cust_name[30];
char pick[30];
char drop[30];
struct tm sd,ed;
};
typedef struct User User;
typedef struct Car Car;
typedef struct Customer_Car_Details Customer_Car_Details;
void addAdmin();
User* getInput();
int checkUserExist(User, char*);
int adminMenu();
void addEmployee();
void viewEmployee();
void addCarDetails();
void showCarDetails();
int deleteEmp();
int deleteCarModel();
void sub_str(char*, char*, char);
int empMenu();
int rentCar();
int selectCarModel();
void updateCarCount(int);
void bookedCarDetails();
char *getCarName(int);
int isValidDate(struct tm);
void availableCarDetails();
void showAllCarDetails();
int isValidDate1(struct tm, struct tm);
#endif // CAR_H_INCLUDED