24,854
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
setlocale( 0 , "chs" );
wcout << L"ab中国cc" << endl;
return 0;
}
#include <stdio.h>
#include <locale.h>
int main( void )
{
setlocale( LC_ALL, "chs" );
wprintf( L"中国" );
return 0;
}
#include <iostream>
#include <locale>
using namespace std;
int main()
{
const locale loc( "chs" );
wcout.imbue( loc );
wcout << L"中国" << endl;
return 0;
}