title: How do you convert decimal in integer to hexadecimal in integer?
body: <pre><code>cout&lt;&lt;std::hex&lt;&lt;dec;
  </code></pre>
  
  <p>I want to store it to an int in the form of 0x...</p>
  
  <p>How do I store that value in an integer instead of printing it out?</p>