title: C++ program gets compiled in VC++ 2010 but not in Visual C++ 6.0
body: <p>I will not paste the whole program, but just the included files and the errors, as I am very sure, the error lies there itself!</p>
  
  <p>Files included in VS 2010</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;windows.h&gt;
  #include "iostream"
  #include "conio.h"
  #include "vector"
  #include "math.h"
  #include &lt;string.h&gt;
  #include &lt;bitset&gt;
  </code></pre>
  
  <p>Files included in Visual C++ 6.0</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;windows.h&gt;
  #include "iostream"
  #include "conio.h"
  #include "vector"
  #include "math.h"
  #include &lt;string.h&gt;
  #include &lt;bitset&gt;
  #include &lt;String&gt;
  </code></pre>
  
  <p>Well, there is just one difference, I added <code>#include &lt;String&gt;</code> in Visual C++ 2006, this particular file reduced  the error which read as</p>
  
  <blockquote>
    <p>error C2678: binary '!=' : no operator defined which takes a left-hand operand of type () 'class std::basic_string,class std::allocator >'
     (or there is no acceptable conversion)</p>
  </blockquote>
  
  <p>The other major errors I am still facing in VS2006 are</p>
  
  <p>Line : <code>str.append(to_string((long double)(value)));</code></p>
  
  <p>Error: <code>error C2065: 'to_string' : undeclared identifier</code></p>
  
  <p>Line: <code>vector &lt;vector &lt;float&gt;&gt; distOfSectionPoint, momentAtSectionPoint, preFinalMoment, finalMoments, momentAtSectionPtOnPtLoadProfile ;</code> </p>
  
  <p>Error: <code>error C2208: 'class std::vector' : no members defined using this type</code></p>
  
  <p>Can anyone explain what goes wrong in Visual C++ 2006??</p>