Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

string hex to int c++

//C++11
std::string s = "0xfffefffe";
unsigned int x = std::stoul(s, nullptr, 16);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #hex #int
ADD COMMENT
Topic
Name
8+9 =