~cpp #include <iostream> #include <map> #include<fstream> using namespace std; int main() { ifstream fin("input.txt"); map<char, char> map1; map1['a'] ='D'; map1['$'] ='t'; map1['9'] ='p'; map1['*'] ='k'; map1['m'] ='n'; map1['i'] ='I'; map1['x'] ='W'; map1['d'] ='o'; map1['='] ='s'; map1['z'] ='!'; map1['-'] ='u'; map1['@'] ='e'; map1['y'] ='a'; map1[' '] =' '; char ch; while(!fin.eof()) { fin.get(ch); if(fin.eof()) break; cout << map1[ch]; } return 0; }