-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSource.cpp
More file actions
54 lines (45 loc) · 1.15 KB
/
Copy pathSource.cpp
File metadata and controls
54 lines (45 loc) · 1.15 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
#include <iostream>
#include <fstream>
#include <iostream>
#include "BMP.h"
using namespace std;
int main()
{
char* way = new char[20];
char* massage = new char[1000];
cout << "\nEnter way to file: "; gets_s(way, 20);
BMP image(way);
int menu;
cout << "\n\n\n";
cout << "______________________________________________________________________________" << endl;
cout << " | Menu | " << endl;
cout << "_______________________________|___________|__________________________________" << endl;
cout << "1) Show_info;\n2) Decoding\n3) Coding\n4) Exit.\n\n\n";
do
{
cout << "\n\nEnter number of menu: ";
cin >> menu;
switch (menu)
{
case 1: image.get_light_info(); break;
case 2:
{
image.DeCoder();
cout << "\n\nMassage: \n";
image.PrintMassage();
};
break;
case 3:
{
cin.ignore();
cout << "\n\nEnter Massage: \n"; gets_s(massage, 1000);
image.Coder(massage, way);
};
break;
case 4: break;
default: cout << ("Wrong number!!!") << "\n\n\n";
}
} while (menu != 4);
system("pause");
return 0;
}