#include <iostream>
#include <string>
#include <Windows.h> //使用WCHAR类型时必须包含的
using namespace std;
void transtoch(char huml[]); //函数声明
void main()
{
char huml[]="fhkyue";
transtoch(huml);
}
void transtoch(char huml[])
{
char letter[]="abcdefghijklmnopqrstuvwxyz";//首先宽字符和宽字符串常量前要加L,例如L'A'
WCHAR s[28]=L"工了以在有地一上不是中国同民为这我产发人经主再忘记你/0";
for(int i=0;huml[i]!='/0';i++)
{
for(int j=0;j<26;j++)
{
//输出中文的话,要设置区域使用wcout.imbue(locale("chs"));
wcout.imbue(locale("chs"));
if(huml[i]==letter[j])
wcout<<s[j]; //输出宽字符
}
}
cout<<endl;
}