Answers for "convert ascii char value to hexadecimal c++"

C++
0

convert ascii char value to hexadecimal c++

#include <sstream>
std::stringstream sstream;
sstream << std::hex << (my_char - 0);
std::string result = sstream.str(); 
// result = hexadecimal string value of the ascii value of my_char
Posted by: Guest on September-16-2020

Code answers related to "convert ascii char value to hexadecimal c++"

Browse Popular Code Answers by Language