title: size of array pie has non-intergral type 'double' error,
body: <pre><code>&lt;double c, six, part1, part2, part3, part4,part5;
  long double pi;
      cout &lt;&lt; "enter a number: ";
      cin &gt;&gt; c;
  
      for(double i = 0; i &lt; c; i++)
      {
  
             part1 = (1/(pow(16 ,(double)i)));
             part2 = 4/(((8*i))+1);
             part3 = 2/(((8*i))+4);
             part4 = 1/(((8*i))+5);
             part5 = 1/(((8*i))+6);
  
              pi = ((part1)*(part2 - part3 - part4 - part5));
  
             for(int ii = 0; ii &lt; c; ii++)
             {
                     int pie[i] = pi;
              }
  
  
  
              cout &lt;&lt; pi &lt;&lt; "\n";&gt;
  </code></pre>
  
  <p>For some reason i cant store my values in the array please help! i dont know if its initialzation errors or conversion errors or what.</p>
  
  <p>Ok sorry about that i fixed it didnt notice i diddnt place a second i in the array now its giving me variable size initalization errors. any way around that?</p>