-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss.c
41 lines (35 loc) · 815 Bytes
/
css.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
#include "viewRecords.h"
#include "startMatch.h"
void start()
{
int r = 0;
system("cls");
system("color 03");
printf("******************\n Press\n\n1 To view records\n2 To start a match\n3 To exit\n******************\n\n");
do
{
fflush(stdin);
scanf("%d", &r);
switch (r)
{
case 1:
system("cls");
viewRecords();
break;
case 2:
system("cls");
startMatch();
break;
case 3:
exit;
break;
default:
printf("You have entered wrong number!!!!\nPlease enter again.\n\n");
break;
}
} while (r != 1 && r != 2 && r != 3);
}
void main()
{
start();
}