VC类型问题

胖不了君 2004-08-10 09:25:08
有的类型有点规律:像
PCWSTR 指向一个以"NULL"结束的Unicode字符串常量的指针
LPCSTR 指向一个以"NULL"结束的WINDOWS字符串常量的指针
LPCTSTR 指向一个以"NULL"结束的Unicode或Windows字符串常量的指针
LPCWCH 指向一个以"NULL"指向一个以"NULL"结束的Unicode字符常量的指针
LPCWSTR 指向一个以"NULL"指向一个以"NULL"结束的Unicode字符串常量的指针
LPCCH 指向一个Windows字符常量的指针;
C代表const是常量,那W是Unicode字符,T是Unicode或Windows字符串,可移植的;那他们的单词是怎么写啊,我想这样理解了就好记了.Unicode字符和WINDOWS字符有什么区别啊?
还有UINT在16为系统是16位的,在32为系统是32位的.那int在Windows上到底是几位啊,double呢
...全文
124 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
无敌魔仙 2004-08-11
  • 打赏
  • 举报
回复
不用记,需要内存分配得时候用sizeof
bluwindhrt 2004-08-11
  • 打赏
  • 举报
回复
x位操作系统的int型一般就是x位了
arajj 2004-08-11
  • 打赏
  • 举报
回复
同意二楼的,不用记的,sizeof(类型)
xiaoyao19811201 2004-08-10
  • 打赏
  • 举报
回复
up 学习
maxcode 2004-08-10
  • 打赏
  • 举报
回复
这是C++在中的一段类型描述:
the C++ types of short, int, and long can represent up to three different integer widths. It would be convenient if each type were always some particular width for all systems; for example, if short were always 16 bits, int always 32 bits, and so on. But life is not that simple. The reason is that no one choice is suitable for all computer designs.
//以下这几句话应该为标准吧!
C++ offers a flexible standard with some guaranteed minimum sizes. Here's what you get:
A short integer is at least 16 bits wide.
An int integer is at least as big as short.
A long integer is at least 32 bits wide and at least as big as int.
zhang_zhibin 2004-08-10
  • 打赏
  • 举报
回复
自己用sizeof试试就知道了。
例 如:
sizeof( double );

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧