title: C++ int with preceding 0 changes entire value
body: <p>I have this very strange problem where if I declare an int like so</p>
  
  <pre><code>int time = 0110;
  </code></pre>
  
  <p>and then display it to the console the value returned is <code>72</code>. However when I remove the 0 at the front so that <code>int time = 110;</code> the console then displays <code>110</code> like expected.</p>
  
  <p>Two things I'd like to know, first of all why it does this with a preceding 0 at the start of the int and is there a way to stop it so that <code>0110</code> at least equals <code>110</code>?<br>Secondly is there any way to keep it so that <code>0110</code> returns <code>0110</code>?<br>
  If you take a crack guess at the variable name I'm trying to do operations with 24hr time, but at this point any time before 1000 is causing problems because of this.</p>
  
  <p>Thanks in advance!</p>