title: How can I stream hexadecimal numbers with A-F (rather than a-f)?
body: <p>Is it possible to make <code>ostream</code> output hexadecimal numbers with characters <code>A-F</code> and not <code>a-f</code>?</p>
  
  <pre><code>int x = 0xABC;
  std::cout &lt;&lt; std::hex &lt;&lt; x &lt;&lt; std::endl;
  </code></pre>
  
  <p>This outputs <code>abc</code> whereas I would prefer to see <code>ABC</code>.</p>