【c++】中文设置

#include <iostream>
#include <string>
#include<locale>
using namespace std;
int i = 3;

int main()
{
    setlocale(LC_ALL, "zh_CN.UTF-8");
    wchar_t a[] = L"你好";
    wcout << a << endl;
    
}

 

posted @ 2014-04-02 21:59  jihite  阅读(1120)  评论(0编辑  收藏  举报