U E D R , A S I H C RSS

Map/곽세환

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

STL실습, 블스캠프2004/목요일

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