-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcorirane.cpp
77 lines (64 loc) · 1.12 KB
/
corirane.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "mylib.cpp"
using namespace std;
class lol{
public:
char codirane[26];
public:
char razkodirane[26];
public:
string text[100];
};
int main() {
lol TRASH;
TRASH.razkodirane[0]='A';
TRASH.codirane[0]='Z';
for(int br=1;br<26;br++){
TRASH.razkodirane[br]='A'+br;
TRASH.codirane[br]='Z'-br;
}
cout << endl
<< " 1 - code.\n"
<< " 2 - decode.\n"
<< " 4 - Fuck you.\n"
<< " 5 - Exit.\n"
<< " Enter your choice and press return: ";
int choice;
cin >> choice;
switch (choice)
{
case 1:
cin>>TRASH.text;
int g=0;
for(char i=TRASH.text[g];i!='32';){
for(int z=0;z<26;z++){
if(TRASH.text[g]==TRASH.razkodirane[z]){
TRASH.text[g]=TRASH.codirane[z];
}
}
g++;
i=TRASH.text[g];
}
cout<<TRASH.text;
break;
case 2:
//code to make score for this game to count how many times u win the game
break;
case 3:
//code to make option for the game
break;
case 4:
//code to help the user like give him
//extra information about the mode and the controller
break;
case 5:
cout << "End of Program.\n";
break;
default:
cout << "Not a Valid Choice. \n"
<< "Choose again.\n";
break;
}
}while (choice !=5);
return 0;
}
}