-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
60 lines (56 loc) · 1.53 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
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
#include "main.h"
int main()
{
char option;
while (1)
{
system("cls");
printf("\t\t>>>>>>>>>>>>>>>>> Student Database System <<<<<<<<<<<<<<<<\n");
printf("\n1. Add Student Database");
printf("\n2. Display All Students Information");
printf("\n3. Update/Edit Student Information");
printf("\n4. Fill the presence or absence");
printf("\n5. create the file of present students in school");
printf("\n6. Create Standard wise file");
printf("\n7. Save All Information in Text file");
printf("\n0. Exit");
printf("\n\n-->Enter Your Option: ");
fflush(stdin);
scanf(" %c", &option);
switch (option)
{
case '1':
add_database();
break;
case '2':
display_info();
break;
case '3':
update_info();
break;
case '4':
fill_the_presence_or_absence();
break;
case '5':
create_file_present_students_in_school();
break;
case '6':
create_Standard_wise_file();
break;
case '7':
save();
break;
case '0':
printf("\n\t\t\t>>>>>>>>>>>>>>>>> Thank You <<<<<<<<<<<<<<<<");
return 0;
break;
default:
printf("\n\t\t\tInvalid Option, Please Enter Right Option !\n");
}
}
return 0;
}