how can i convert c++ str to int?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8014387/c-converting-string-to-int">c++ converting string to int</a>  </p>
</blockquote>



<p>I have the user input 9 numbers in sequence. I need to convert the string numbers to an int</p>

<pre><code>string num;
int num_int, product[10];

cout &lt;&lt; "enter numbers";
cin &gt;&gt; num;

for(int i =0; i&lt;10; i++){
   product[i] = num[i] * 5; //I need the int value of num*5
}
</code></pre>
