"WCHAR"和"wchar_t"有什么区别? [英] What is the difference between 'WCHAR' and 'wchar_t'?

查看:75
本文介绍了"WCHAR"和"wchar_t"有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WCHAR wchar_t 之间是否有实际区别?

Is there any practical difference between WCHAR and wchar_t?

推荐答案

嗯,一个实际的区别是 WCHAR 在我的平台上不存在.仅对于Windows(不打算将程序移植到另一个平台)和包括必要的标头,它是相同的(因为 WCHAR 只是一个 typedef ).

Well, one practical difference would be that WCHAR doesn't exist on my platform. For Windows only (and with no intention of ever porting the program to another platform) and with the necessary headers included, it's the same (since WCHAR is just a typedef).

这篇关于"WCHAR"和"wchar_t"有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆