再次请教复数问题
我编写的程序中使用了#include <complex>,但是
complex_d in1[M]
...,..
for(int i=0;i<M;i++)
{
in[i][0]=in1[i].real;
in[i][1]=in1[i].imag;
}
还是出错。请各位大虾指点一下。
2010-10-11 20:10
2010-10-11 20:56
程序代码:for(int i=0;i<M;i++)
{
in[i][0]=real(in1[i]);
in[i][1]=imag(in1[i]);
}
2010-10-18 15:09