title: How to convert char* to double?
body: <p>I've tried two methods to convert my <code>char*</code> type <code>ss</code>
  to a double type.
  Here is my code(Compiled in VC++6.0  windows64-bit )</p>
  
  <pre><code>int main()
  {
      char *ss = "-1964734.544";
      cout&lt;&lt;ss&lt;&lt;endl;
      cout&lt;&lt;*reinterpret_cast&lt;double*&gt;(ss)&lt;&lt;endl;
      cout&lt;&lt;*(double *)ss&lt;&lt;endl;
  }
  </code></pre>
  
  <p>The results are:</p>
  
  <pre><code>-1964734.544
  3.06123e-057
  3.06123e-057
  </code></pre>
  
  <p>I'm not clear what is wrong and how to convert a <code>char*</code> to double.</p>