U E D R , A S I H C RSS

Map/황재선

~cpp 
#include <iostream>
#include <string>
#include <map>
using namespace std;

int main()
{
	map<char, char> decode;

	string text = "ad md$ =i@@9z xy*@ -9z";

	decode['a'] = 'D';
	decode['$'] = 't';
	decode['9'] = 'p';
	decode['*'] = 'k';
	decode['m'] = 'n';
	decode['i'] = 'l';
	decode['x'] = 'W';
	decode['d'] = 'o';
	decode['='] = 's';
	decode['z'] = '!';
	decode['-'] = 'u';
	decode['@'] = 'e';
	decode['y'] = 'a';
	decode[' '] = ' ';


	for (int i = 0; i < text.size(); i++)
		cout << decode[text[i]];
	cout << endl;
	return 0;
}

STL실습, 블스캠프2004/목요일
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:44
Processing time 0.0064 sec