title: How to effectively store large number in integer array? C++
body: <p>Hello everybody out there! I have a home work assigment where I need to build a high presision calculator that will operate with very large numbers. The whole point of this assigment is that storing the values in arrays as one digit goes to separate array cell is now allowed.</p>
  
  <p>That is memory representation of number</p>
  
  <p>335897294593872 </p>
  
  <p>like so</p>
  
  <pre><code>int number[] = {3, 3, 5, 8, 9, 7, 2, 9, 4, 5, 9, 3, 8, 7, 2};
  </code></pre>
  
  <p>is not legit,</p>
  
  <p>nor</p>
  
  <pre><code>char number[] = {3, 3, 5, 8, 9, 7, 2, 9, 4, 5, 9, 3, 8, 7, 2};
  </code></pre>
  
  <p>nor</p>
  
  <pre><code>std::string number("335897294593872");
  </code></pre>
  
  <p>What I want to do is to split up the whole number into 32bit chunks and store each individual chunk in separate array cell data type of which is u32int_t.</p>
  
  <p>Since I get the input from keyboard I store all values in std::string initially and later put them in integer arrays to perform operations.</p>
  
  <p>How do I put binary representation of a large number into an integer array filling in all bits properly?</p>
  
  <p>Thank you in advance.</p>
  
  <p>EDIT: Using standard C++ libraries only</p>
  
  <p>EDIT2: I want to be able to add, subtract, multiply, divide those arrays with large numbers so I mean not to merely cut the string up and store decimal representation in integer array, but rather preserve bits order of the number itself to be able to calculate carry.</p>