No older revisions available
No older revisions available
~cpp
#include <iostream>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
void main()
{
map<char, char> m;
m['a'] = 'D';
m['$'] = 't';
m['9'] = 'p';
m['*'] = 'k';
m['m'] = 'n';
m['i'] = 'l';
m['x'] = 'W';
m['d'] = 'o';
m['='] = 's';
m['z'] = '!';
m['-'] = 'u';
m['@'] = 'e';
m['y'] = 'a';
m[' '] = ' ';
char s[30] = "ad md$ =i@@9z xy*@ -9z";
//cin.getline(s, 30);
for (int i = 0; i < strlen(s); i++)
cout << m[s[i]];
cout << endl;
}