title: Getting hex through Cin
body: <p>Why doesn't this code work?</p>
  
  <pre><code>int x;
  cin &gt;&gt; x;
  </code></pre>
  
  <p>With the input of <code>0x1a</code> I get that <code>x == 0</code> and not <code>26</code>.</p>
  
  <p>Why's that?</p>