I have searched online, but it doesn't seem to be a solution to my problem. Basically I have a std::string
which contains a hexadecimal memory address (like 0x10FD7F04, for example). This number is read from a text file and saved as a std::string
, obviously.
I need to convert this string to an int value, but keeping the hex notation, 0x. Is there any way to do this?