How can I create a complex array?
<p>I have a very simple question for you:</p>

<pre><code>#include &lt; iostream&gt; 
#include &lt; complex&gt;

using namespace std;

int main()
{

    int k=200000;

    complex &lt;double&gt; r0[k/2],r1[k/2]; ///wrong!!!

    complex &lt;float&gt; r0[k/2],r1[k/2];  ///right

    return 0;
}
</code></pre>

<p>I just wanna create a complex array. <code>k=200000</code> here, the computer stop working (not error, it shows my file stop working),  if i just <code>complex &lt;double&gt;</code>, it works with <code>complex&lt;float&gt;</code>! What could be the reason?</p>
