title: error C2440: 'initializing' : cannot convert from 'std::string' to 'double *[]'
body: <p>I've been working on Microsoft Visual C++ 2010(32-bit system)    </p>
  
  <p>In the compilation phase i get an error that says:</p>
  
  <pre><code>1&gt;------ Build started: Project: pruebavecot, Configuration: Debug Win32 ------
  1&gt;  pruebavecot.cpp
  1&gt;c:\users\andresgraco\desktop\pruebavecot\pruebavecot\pruebavecot.cpp(64): error C2057: expected constant expression
  1&gt;c:\users\andresgraco\desktop\pruebavecot\pruebavecot\pruebavecot.cpp(64): error C2466: cannot allocate an array of constant size 0
  1&gt;c:\users\andresgraco\desktop\pruebavecot\pruebavecot\pruebavecot.cpp(64): error C2440: 'initializing' : cannot convert from 'std::string' to 'double *[]'
  1&gt;          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main () {
  string line;
  ifstream myfile ("Vetor_Oscilacao.txt");
  if (myfile.is_open())
  {
   int i=1;
  while ( getline (myfile,line) )
  {
    cout &lt;&lt; stod(line) &lt;&lt; '\n';
    for(double i=1; i&lt;100; i++)
  {
        double in[i]=line;
  }
  }
  myfile.close();
  }
  
  else cout &lt;&lt; "Unable to open file"; 
  getchar();
  return 0;
  }
  </code></pre>
  
  <p>I am trying to receive data from a .txt file and store it in the vector (in [i]) for later use in an fftw. The data in the .txt file is organized as follows:</p>
  
  <pre><code>21.000000
  24.000000
  25.000000
  25.000000
  21.000000
  22.000000
  24.000000
  25.000000
  ...(data #100)
  </code></pre>
  
  <p>Thank you very much for your help.</p>