如何输出unicode对应的汉字
#include <iostream>using namespace std;
main()
{
wchar_t a;
a=L'\u7ecf';
cout<<a<<endl;
}
7ecf对应unicode中的经字,如何输出经?
2016-09-18 11:36
程序代码:#include <iostream>
#include <locale>
using namespace std;
int main( void )
{
wchar_t a = L'\u7ecf';
wcout.imbue( std::locale("") );
wcout << a << endl;
}
2016-09-18 11:47
2016-09-18 12:10

2016-09-18 14:47
2016-09-18 14:50
2016-09-18 14:51
2016-09-18 15:07
2016-09-18 15:14