C++ - 哪些是可变的" Uint "?
C++ - Which are variable by " Uint "?
哪些是由"Uint"变量的?就是有" Uint8","Uint16"等...
但是它们是什么?
现在我有一些时间使用 C++但我从来不需要使用这些变量并引起我的好奇心。
提前谢谢。
uint
不是标准类型。在某些系统上,uint
typedef
为
typedef unsigned int uint ;
uint
不是标准中提到的基本数据类型。有时,为了使变量在平台上具有恒定的大小[以实现可移植性],会使用一些typedef
。
您可以查看 cstdint 标头以获取更多信息。
根据最佳假设,uint
应该是要uint32_t
的类型定义
typedef uint32_t uint;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed long int32_t;
It can help you..
如果你正在处理基于其大小的变量,那么你可以像这样声明它
相关文章:
- GLSL 将 uint 转换为浮点颜色
- 定义 uint= "unsigned int" 没有像我在 Visual Studio 中使用 nvcc 时预期的那样应用
- 着色器将uint8投射到float,并将其重新解释回uint
- 如何将boost::asio::ip::address_v6 ip转换为2个uint64_t数字,并从2个uint 64
- 将 CRC uint 转换为 QByteArray QT - C++
- OSX 上的 GCC 5、6 和 7 不支持 uint
- Multiplication: uint vs float
- 在 jsoncpp 中区分 int 和 uint 类型
- 将UINT转换为WS_STRING
- 重新定义 uint 类型 C++
- c 中的uint()函数在哪里
- C :合并并将UINT分为4个字节的最快方法
- 尝试使用 uint*& 作为常量单元*&失败:从类型"uint8_t"的表达式初始化类型"const uint8_t*&"的引用无效
- 如何将QKeyEvent::nativeModifiers()转换为UINT fsModifiers
- 在 C# 中将单引号字符串到 uint
- C++ - 哪些是可变的" Uint "?
- 将双倍转换为 uint 并重新游览
- C4267:"返回":从"size_t"转换为"const UINT",可能会丢失数据
- 无法将 List 中的类型 'uint' 隐式转换为'T'(从类模板)
- 编写静态const uint变量和匿名枚举变量之间的区别是什么