需要支持C11
#include <iostream>
#include <sstream>
std::string hexValue = "0FCC7877180097";
std::istringstream converter{ hexValue };
long long value = 0;
converter >> std::hex >> value;
需要支持C11
#include <iostream>
#include <sstream>
std::string hexValue = "0FCC7877180097";
std::istringstream converter{ hexValue };
long long value = 0;
converter >> std::hex >> value;