你如何使用unicode进行c ++ [英] how do you use unicode to c++
本文介绍了你如何使用unicode进行c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过unicode我的程序需要一些波斯语单词,我从来不知道如何有效地执行此操作。我的程序C ++语言和操作系统Linus。
I need some Persian word by unicode my program, I never know how to do this effectively. my program C + + language and operating system Linus.
推荐答案
试试这个并说它是否有帮助:
Try this and say please whether it helps:
#include <iostream>
#include <string>
int main()
{
std::wstring name;
std::wcout << L"Enter your name: ";
std::wcin >> name;
std::wcout << L"Hello, " << name << std::endl;
}
这篇关于你如何使用unicode进行c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文