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