首页 > 学院 > 开发设计 > 正文

c语言

2019-11-06 07:20:10
字体:
来源:转载
供稿:网友

在C/C++中输出宽字符可以使用PRintf + %ls 或者 wcout,详细请看代码: [cpp] view plain copy

// 【MoreWindows工作笔记1】 C/C++ 输出宽字符 printf + %ls or wcout

include

include

include

using namespace std; int main() { printf(” 【MoreWindows工作笔记1】 C/C++ 输出宽字符 printf + %ls or wcout/n”); printf(” - http://blog.csdn.net/morewindows/article/details/16358175 -/n”); printf(” – By MoreWindows( http://blog.csdn.net/MoreWindows ) –/n/n”);

char text[] = “MoreWindows”; WCHAR w_text[] = L”http://blog.csdn.net/MoreWindows“;

printf(“%s %ls/n”, text, w_text);

cout<


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表