-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKinoteatr_cpp.cpp
More file actions
34 lines (31 loc) · 869 Bytes
/
Kinoteatr_cpp.cpp
File metadata and controls
34 lines (31 loc) · 869 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
#include <iostream>
#include <string>
#include <fstream>
#include "Film.h";
#include "Function.h";
using namespace std;
bool work=true;
int main(int argc, char* argv[])
{
setlocale(LC_CTYPE, "Russian");
char choice;
cout << "Добро пожаловать в кинотеатр!!!" << endl << "Выберите действие" << endl;
while (work) {
choice = menu_select();
switch (choice) {
case 1: addfilm(string (argv[1]));
break;
case 2: listfilm(string (argv[1]));
break;
case 3: searchfilm(string (argv[1]));
break;
case 4: deletefilm(string(argv[1]));
break;
case 5: changefilm(string(argv[1]));
break;
case 6: exit(0);
return 0;
}
}
return 0;
}