• 3040阅读
  • 3回复

如何int型的字节? [复制链接]

上一主题 下一主题
离线air_chen
 

只看楼主 正序阅读 楼主  发表于: 2015-02-03
如何在qtcreater里面设置编译器分配Int型变量的字节为4字节?
离线jnny_cn

只看该作者 3楼 发表于: 2015-02-04
不用,你把代码里的int统一替换成qint32就可以
离线air_chen

只看该作者 2楼 发表于: 2015-02-04
回 jnny_cn 的帖子
jnny_cn:统一替换成 qint32
//----------------------
typedef qint32
Typedef for signed int. This type is guaranteed to be 32-bit on all platforms supported by Qt. (2015-02-03 22:56) 

是把这一句加到.pro文件里面吗?
离线jnny_cn

只看该作者 1楼 发表于: 2015-02-03
统一替换成 qint32

//----------------------
typedef qint32
Typedef for signed int. This type is guaranteed to be 32-bit on all platforms supported by Qt.
快速回复
限100 字节
 
上一个 下一个