On 9 August 2012 22:10, Arthur Schwarz wrote: > The code (below) is an output example. Hex output occurs for all the numeric > types but not for unsigned char/char. Does hex only work for numeric values, and > how do I force hex output? cout.setf(ios::hex) does not work. http://stackoverflow.com/a/3756406/981959