8得票1回答
strtoull()函数的输出在转换为double类型并再次转换为uint64_t类型时会失去精度。

请考虑以下内容: #include <iostream> #include <cstdint> int main() { std::cout << std::hex << "0x" << std::strtoul...