作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我只是偶然发现了u_int8_t
类型,因为它不能在Windows + MinGW中编译(但是在Linux下可以很好地编译)。根据this site,C++ 11标准定义了uint8_t
类型。我只是使用了后者,所以一切正常。
出现的问题是:
u_int8_t
和uint8_t
之间有什么区别? u_int8_t
? uint8_t
存在吗? intX_t
和uintX_t
)也有效? 最佳答案
Is there any difference between
u_int8_t
anduint8_t
?
u_int8_t
只是一个非常老的名称,尚未标准化。躲开它。
Is there a reason (besides legacy code) to use
u_int8_t
?
Is it safe to assume that
uint8_t
will be present if I use a C++11 compiler (on different OS or architectures)?
Are the answers to the above questions also valid for the other types (
intX_t
anduintX_t
)?
关于c++11 - C++ 11 uint类型与u_int,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23291323/
我是一名优秀的程序员,十分优秀!