title: How can I remove the leading zeroes from an integer generated by a loop and store it as an array?
body: <p>I have a <code>for</code> loop generating integers. </p>
  
  <p>For instance:</p>
  
  <pre><code>for (int i=300; i&gt;200; i--)
      {(somefunction)*i=n;
      cout&lt;&lt;n;
      }
  </code></pre>
  
  <p>This produces an output on the screen like this:</p>
  
  <pre><code>f=00000000000100023;
  </code></pre>
  
  <p>I want to store the 100023 part of this number (i.e just ignore all the zeros before the non zero numbers start but then keeping the zeros which follow) as an array.</p>
  
  <p>Like this:</p>
  
  <pre><code>array[0]=1;
  array[1]=0;
  array[2]=0;
  array[3]=0;
  array[4]=2;
  array[5]=3;
  </code></pre>
  
  <p>How would I go about achieving this?</p>