I have a piece of code here :
unsigned char a = 0xF1;
std::stringstream hexStr;
hexStr << hex << a;
string b = hexStr.str();
cout << b << endl;
Which outputs plusorminus
char/string to command line.
I want b
to be "F1"
.