{{{~cpp #include #include #include #include using namespace std; void main() { map 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/목요일]