0
点赞
收藏
分享

微信扫一扫

C++ 16进制字符串转long long

软件共享软件 2022-03-25 阅读 92
c++

需要支持C11

#include <iostream>
#include <sstream>

    std::string hexValue = "0FCC7877180097";  
    std::istringstream converter{ hexValue };  
    long long value = 0;  
    converter >> std::hex >> value;  

举报

相关推荐

0 条评论