title: C++ won't read in scientific notation data from a .txt file
body: <p>I am writing a program which is reading in an array from a text file which has both normal integers, and also multiple numbers that are in scientific notation, of the form: #.#####E##.  Here is a few sample lines of the input .txt file:</p>
  
  <pre><code>       21   -1    0    0  501  502  0.00000000000E+00  0.00000000000E+00  0.17700026409E+03  0.17700026409E+03  0.00000000000E+00 0. -1.
         21   -1    0    0  502  503  0.00000000000E+00  0.00000000000E+00 -0.45779372796E+03  0.45779372796E+03  0.00000000000E+00 0.  1.
          6    1    1    2  501    0 -0.13244216743E+03 -0.16326397666E+03 -0.47746002227E+02  0.27641406353E+03  0.17300000000E+03 0. -1.
         -6    1    1    2    0  503  0.13244216743E+03  0.16326397666E+03 -0.23304746164E+03  0.35837992852E+03  0.17300000000E+03 0.  1.
  </code></pre>
  
  <p>And here is my program which simply reads in the text file and puts it into an array (or more specifically, a vector of vectors):</p>
  
  <pre><code>vector &lt;float&gt; vec; //define vector for final table for histogram.
      string lines;
      vector&lt;vector&lt;float&gt; &gt; data; //define data "array" (vector of vectors)
  
      ifstream infile("final.txt"); //read in text file
  
      while (getline(infile, lines))
      {
          data.push_back(vector&lt;float&gt;());
          istringstream ss(lines);
          int value;
          while (ss &gt;&gt; value)
          {
              data.back().push_back(value); //enter data from text file into array
          }
      }
  
      for (int y = 0; y &lt; data.size(); y++)
      {
          for (int x = 0; x &lt; data[y].size(); x++)
         {
              cout&lt;&lt;data[y][x]&lt;&lt; " ";
          }
          cout &lt;&lt; endl;
     }
  //  Outputs the array to make sure it works.
  </code></pre>
  
  <p>Now, this code works beautifully for the first 6 columns of the text file (these columns are entirely integers), but then it completely ignores every column 6 and higher (these are the columns containing scientific notation numbers).</p>
  
  <p>I have tried redefining the vectors as both types double and float, but it still does the same thing.  How can I get C++ to recognize scientific notation?</p>
  
  <p>Thanks in advance!</p>