-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.c
More file actions
33 lines (33 loc) · 1.1 KB
/
Copy pathmenu.c
File metadata and controls
33 lines (33 loc) · 1.1 KB
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
void menu()
{
int choice = 0;
do
{
headMessage("MAIN MENU");
printf("\n\n\n\t\t\t1.Add Student");
printf("\n\t\t\t2.Search Student");
printf("\n\t\t\t3.View Student");
printf("\n\t\t\t4.Delete Student");
printf("\n\t\t\t5.Update Password");
printf("\n\t\t\t0.Exit");
printf("\n\n\n\t\t\tEnter choice => ");
scanf("%d",&choice);
switch(choice)
{
case 1: addStudentInDataBase();
break;
case 2: searchStudent();
break;
case 3: viewStudent();
break;
case 4: deleteStudent();
break;
case 5: updateCredential();
break;
case 0: printf("\n\n\n\t\t\t\tThank you!!!\n\n\n\n\n");
exit(1);
break;
default: printf("\n\n\n\t\t\tINVALID INPUT!!! Try again...");
} //Switch Ended
} while(choice!=0); //Loop Ended
}