I want to build a function to easily convert a string containing hex code (eg. \"0ae34e\") into a string containing the equivalent ascii values and vice versa. Do I have to cut
If you want to use a more c++ native way, you can say
std::string str = "0x00f34" // for example stringstream ss(str); ss << hex; int n; ss >> n;