-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cpp
33 lines (31 loc) · 914 Bytes
/
Main.cpp
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
#include "Classes.h"
int main()
{
int sw1;
vector <Matrix> Matrixs;
do{
cout << "1) Create new txt file" << endl;
cout << "2) Create new bin file" << endl;
cout << "3) Use txt file" << endl;
cout << "4) Use bin file" << endl;
cout << "0) Exit" << endl;
cin >> sw1;
switch (sw1)
{
case 1:
menuToDo(Matrixs, "file.txt", sw1);
break;
case 2:
menuToDo(Matrixs, "file.bin", sw1);
break;
case 3:
menuToDo(Matrixs, "file.txt", sw1);
break;
case 4:
menuToDo(Matrixs, "file.bin", sw1);
break;
case 0: return 0;
}
} while (sw1 != 0);
return 0;
}