gpt4 book ai didi

qt - Qt中quint64的最大数值是多少?

转载 作者:行者123 更新时间:2023-12-04 13:09:48 26 4
gpt4 key购买 nike

这个问题在这里已经有了答案:




8年前关闭。




Possible Duplicate:
Where are the limits for Qt types?



我需要最大数量的 quint64 例如我们有一个用于 ulong ULONG_MAX 的宏

quint64 是否有相同的宏?

最佳答案

您可以在官方文档中找到答案:
quint64unsigned long long int 的 typedef ( unsigned __int64 在 Windows 上)。在 Qt 支持的所有平台上,此类型保证为 64 位。

所以,quint64是无符号整数的 64 位类型。
我们可以这样找到它的最大值:2^64-1 = 18446744073709551615 .

原来如此here , 你可以通过包含 #include <limits> 得到相同的结果, 输出结果为

std::numeric_limits<quint64>::max();

关于qt - Qt中quint64的最大数值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14199523/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com