How to convert char* to int in C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5290089/how-to-convert-a-number-to-string-and-vice-versa-in-c">How to convert a number to string and vice versa in C++</a>  </p>
</blockquote>



<p>I am trying to convert string number in int and following below way but it's not working:</p>

<pre><code>string s = "1001";
const char* symbols = s.c_str();
int num = int(*symbols);
</code></pre>

<p>Conversion is failing how to proceed ??</p>
