-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (34 loc) · 824 Bytes
/
Copy pathmain.cpp
File metadata and controls
35 lines (34 loc) · 824 Bytes
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
#include <iostream>
#include <stdio.h>
#include "lists.cpp"
#include "students.cpp"
#include "zadachi.cpp"
#include "calc.cpp"
int main()
{
const int ZADACHI = 1, STUDENTS = 3, EXIT = 0, LISTS = 2, CALC = 4;
int menu = 0;
while (menu != 451){
printf(" 1 - Zadachi\n 2 - lists\n 3 - students\n 4 - calculator\n");
scanf("%d",&menu);
switch(menu)
{
case STUDENTS:
students();
break;
case ZADACHI:
zadachi();
break;
case CALC:
calc();
break;
case EXIT:
menu = 451;
break;
case LISTS:
lists();
break;
};
};
return 0;
};