c++ 中文字符有关问题

c++ 中文字符问题
我现在想把一个中文的汉字输出出来,但不能用字符直接等的方式输出,需要把它与汉字的内码进行转换,具体的操作如下
  #include   <iostream>
  #include   <string>
  using   namespace   std;
int   main()
{
int   x   =   " ";   //汉字的编码

cout < <(char)x < <endl;
}
输出为汉字,但这种方法我试了一下得不到预期的结果,请问该怎么设计,如果可以的话给出例子   ,谢谢?

------解决方案--------------------
use unicode??

------解决方案--------------------
……
wstring str = L "中国人 ";
wchar_t ch = L '人 ';
wchar_t a = 20154; // 也是 '人 '
wcout.imbue(std::locale( "chs "));

wcout < < str.c_str() < < endl;
wcout < < ch < < endl;
wcout < < a < < endl;
……