title: Concatenate numbers in a vector to form one number
body: <p>I have a function which feeds a vector series of numbers. This series of numbers is to be appended to form a long long number and get stored in another vector.</p>
  
  <p>Eg.</p>
  
  <pre><code>Vector1= |2|3|4|5|5|
  vector2= |23455|     |
  </code></pre>
  
  <p>A space indicates the end of one number and functions starts to output second number series. I think reverse iterator and multiply by <code>10^x</code> is somehow a solution. </p>
  
  <p>Eg code</p>
  
  <pre><code>vector&lt;long long&gt; a, fin;
  for (int i = 0; i &lt;6; i++)
  {
      a.push_back(i + 1);    //  adds 1 2 3 4 5 6  in slots of v1
  
  
  }
  int j = 0;
  for (vector&lt;long long&gt;::reverse_iterator i = a.rbegin(); i != a.rend(); i++)  { 
  // want to append v1 members to form one number 123456 and store it in first slot of vector2;
  
      fin[0] += (a[(*i)] * (10 ^ j)); 
      j++;
  }
  cout &lt;&lt; fin[0];
  </code></pre>