篮球位置介绍:C++中wchar_t和std::wstring怎么使用?
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/10 12:53:46
请问C++中何时应该使用wchar_t和std::wstring,使用后又如何输出
例如:
#include <iostream>
wchar_t chinese = L'天';
int main(){
std::wcout << chinese; //期望输出'天',实际输出''
}
例如:
#include <iostream>
wchar_t chinese = L'天';
int main(){
std::wcout << chinese; //期望输出'天',实际输出''
}