title: vector of integers
body: <p>I'd like to convert a vector to an integer. I can output the vector using </p>
  
  <pre><code>vector &lt;int&gt; iV;
  
  iV.push_back(3);
  iV.push_back(8);
  iV.push_back(6);
  
  copy(iV.begin(),iV.end(),ostream_iterator&lt;int&gt;(cout,""))
  </code></pre>
  
  <p>But how can I get this to an int?</p>
  
  <p>EDIT: Using stringstream works fine for what I'm doing.
  I did want to see exactly what it looked like via cout.
  I didn't want exact int by int I meant one single int so for my example it would be an int equaling 386.
  Thanks everyone for there help really appreciate it.</p>