C ++ U32型头 [英] C++ U32 type header

查看:441
本文介绍了C ++ U32型头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的 U32 的类型,但我找不到它被定义的标题。有谁知道?

I want to use U32 type but I can't find the header where it is defined. Does anyone know?

推荐答案

有没有名为 U32 标准型,但如果你的#include&LT ; cstdint> stdint.h 为C)可以使用的std :: uint32_t的 1 ,32位无符号整数,这是(我假设),你想要什么。

There is no standard type called U32, but if you #include <cstdint> (stdint.h for C) you can use std::uint32_t1, a 32 bit unsigned integer, which is (I assume) what you want.

下面是<一个href=\"http://publib.boulder.ibm.com/infocenter/comphelp/v9v111/index.jsp?topic=/com.ibm.xlcpp9.aix.doc/standlib/header_cstdint.htm\"相对=nofollow>在类型列表中的 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
}

1 感谢Martinho为费尔南德斯指出,这些类型的命名空间 STD

1 Thanks Martinho Fernandes for pointing out that these types are in the namespace std.

这篇关于C ++ U32型头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆