struct info char sn 30 int mark int main void char filename 50 char me

 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
struct info
{
char sn[30];
int mark[4];
};
int main(void)
{
char filename[50];
char menu;
int ball=300;
puts("Enter file name");
gets(filename);
do
{
system("cls");
puts("1 Add new puipl");
puts("2 Edit");
puts("3 Show list");
puts("4 Delet ");
puts("5 Loosers");
puts("6 Succes");
puts("7 Exit");
menu=getchar();
switch(menu)
{
case '1' : add(filename);
break;
case '2' : edit(filename);
break;
case '3' : show(filename);
break;
case '4' : delet(filename);
break;
case '5' : loosers(filename,ball);
break;
case '6' : succes(filename,ball);
}
}
while(menu!='7');
return 0;
}