-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
42 lines (41 loc) · 1.01 KB
/
Copy pathmain.c
File metadata and controls
42 lines (41 loc) · 1.01 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
34
35
36
37
38
39
40
41
42
#include "src/system.h"
int main()
{
int ch;
system(CLEAR);
logo();
blue();
c_printf("Contributors:- Kushal Saha(Lead) Shreyangshu Saha Subrata Mondal Indadul Haque");
c_printf("--------------------------------------------------------------------------------------\n");
reset();
while (1)
{
printf("\n\n");
red();
c_printf("Login as:");
yellow();
printf("\n ----------\t\t\t------------\t\t\t---------");
printf("\n |(1)ADMIN|\t\t\t|(2)STUDENT|\t\t\t|(0)EXIT|");
printf("\n ----------\t\t\t------------\t\t\t---------");
reset();
printf("\n>");
scanf("%d", &ch);
fflush(stdin);
switch (ch)
{
case 1:
admin();
break;
case 2:
student();
break;
case 0:
exit(0);
default:
red();
printf("\nWrong Input !");
reset();
}
}
return (0);
}