📜  string hex to int c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.011000             🧑  作者: Mango

代码示例1
//C++11
std::string s = "0xfffefffe";
unsigned int x = std::stoul(s, nullptr, 16);