U E D R , A S I H C RSS

Map/조재화

~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;
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:44
Processing time 0.0144 sec