title: C++ Store multiple integers in one int variable
body: <p>I am trying to store multiple integers in one int variable.
  So like this:</p>
  
  <pre><code>int num1 = 2;
  int num2 = 6;
  int num3 = num1 + num2;
  </code></pre>
  
  <p>But I get 8. I want 26. I am aware this is the result I should expect, but I would just like a method of tying the integers together instead of adding them and I couldn't think of a better example.</p>
  
  <p>Thank you!</p>