C++ U32类型头

Tia*_*sta 3 c c++

我想使用U32类型,但我找不到定义它的标题.有人知道吗?

Set*_*gie 13

没有调用标准类型U32,但是如果你#include <cstdint>(stdint.h对于C)你可以使用std::uint32_t1,一个32位无符号整数,这是(我假设)你想要的.

以下是标题中的类型列表cstdint:

namespace std {
    int8_t
    int16_t
    int32_t
    int64_t
    int_fast8_t
    int_fast16_t
    int_fast32_t
    int_fast64_t
    int_least8_t
    int_least16_t
    int_least32_t
    int_least64_t
    intmax_t
    intintptr_t
    uint8_t
    uint16_t
    uint32_t
    uint64_t
    uint_fast8_t
    uint_fast16_t
    uint_fast32_t
    uint_fast64_t
    uint_least8_t
    uint_least16_t
    uint_least32_t
    uint_least64_t
    uintmax_t
    uintintptr_t
}
Run Code Online (Sandbox Code Playgroud)

1感谢Martinho Fernandes指出这些类型在命名空间中std.