title: C++, Integer and Char array conversion trouble
body: <p>I have the <code>char</code> array:</p>
  
  <pre><code>char* chararray = new char[33];
  </code></pre>
  
  <p>and the <code>int</code>:</p>
  
  <pre><code>int exponent = 11111111;
  </code></pre>
  
  <p>What I want to do, but am confused as to how, is: input the values of <code>exponent</code> into <code>chararray</code>. With the restrictions that <code>exponent</code> has to take up the 2nd to 9th values of <code>chararray</code>. <code>chararray</code> will be all 32 0s,and I want it to become 0xxxxxxxx0000....00, the x's being the 8 digits in <code>exponent</code>. </p>
  
  <p>Furthermore, no build-in conversion functions like atof or atoi. I also want to avoid using Floats or doubles not that you'd really need to.</p>
  
  <p>Note, this is for making IEEE754 32bit values to get some understanding.</p>
  
  <p>Will edit for additional details or clarification if needed.</p>