//
// main.cpp
// cpplearn1
//
// Created by myhaspl on 2017/12/3.
// Copyright © 2017年 myhaspl@myhaspl.com. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
locale loc("zh_CN.UTF-8");
wcout.imbue(loc);
wchar_t x[]=L"你好";
string y="您好!";
const string z="很高兴认识您";
wcout<<x<<endl;
cout<<y<<z<<endl;
return 0;
}
你好
您好!很高兴认识您
Program ended with exit code: 0