U E D R , A S I H C RSS

Map/김수진

No older revisions available

No older revisions available



===Map/김수진===
~cpp 
#include<iostream> 
#include<string> 
#include<map> 
using namespace std; 
int main()
{
	map <char, char> map1;
	//'a'->'D' '$'->'t' '9'->'p' '*'->'k' 'm'->'n' 'i'->'l' 'x'->'W' 
	//'d'->'o' '='->'s' 'z'->'!' '-'->'u' '@'->'e' 'y'->'a' ' '->' ' 
	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[' ']=' ';
	
	string name="ad md$ =i@@9z xy*@ -9z ";
	char ch;
	for(int i=0;i<name.size();i++) 
	{ 
		ch = name[i];
		cout<<map1[ ch ];
	}
	
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:44
Processing time 0.0279 sec