-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
61 lines (59 loc) · 1.52 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "./controller/appointment/appointment_controller.h"
#include "./controller/bill/bill_controller.h"
#include "./controller/department/department_controller.h"
#include "./controller/doctor/doctor_controller.h"
#include "./controller/inventory/inventory_controller.h"
#include "./controller/patient/patient_controller.h"
#include "./controller/room/room_controller.h"
#include "./controller/staff/staff_controller.h"
#include <stdio.h>
int main()
{
int choice;
while (1)
{
printf("\n1. Patient\n");
printf("2. Doctor\n");
printf("3. Appointment\n");
printf("4. Room\n");
printf("5. Bill\n");
printf("6. Department\n");
printf("7. Staff\n");
printf("8. Inventory\n");
printf("9. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice)
{
case 1:
patientController();
break;
case 2:
doctorController();
break;
case 3:
appointmentController();
break;
case 4:
roomController();
break;
case 5:
billController();
break;
case 6:
departmentController();
break;
case 7:
staffController();
break;
case 8:
inventoryController();
break;
case 9:
return 0;
default:
printf("Invalid choice\n");
};
}
return 0;
}