Convert a string into a double, and a int. How to?
<p>I'm having trouble converting a string into a double. 
My string has been declared using the "string" function, so my string is:</p>

<pre><code>string marks = "";
</code></pre>

<p>Now to convert it to a double I found somewhere on the internet to use word.c_str(), and so I did. I called it and used it like this:</p>

<pre><code>doubleMARK = strtod( marks.c_str() );
</code></pre>

<p>This is similar to the example I found on the web: </p>

<pre><code>n1=strtod( t1.c_str() );
</code></pre>

<p>Apparently, that's how it's done. But of course, it doesn't work. I need another parameter. A pointer I believe? But I'm lost at this point as to what I'm suppose to do. Does it need a place to store the value or something? or what? </p>

<p>I also need to convert this string into a integer which I have not begun researching as to how to do, but once I find out and if I have errors, I will edit this out and post them here.</p>
