Published
- 1 min read
string hex to int c++
The solution for this is noted below
string hex to int c++
Solution
//C++11
std::string s = "0xfffefffe";
unsigned int x = std::stoul(s, nullptr, 16);
Try other methods by searching on the site. That is if this doesn’t work