-2
int input,n,i;
scanf("%d%d",&input,&n);
double a,b;
double complex arr[n];
for (i = 0; i < n; ++i)
{
scanf("%lf%lf",&a,&b);
creal(arr[i])=a;
cimag(arr[i])=b;
}
誤差:必須爲分配enter code here
creal的左操作數的左值(ARR [I])= A; 爲什麼我不能拿輸入的複數如何掃描的複數陣列用C
什麼是'creal'和'cimage'? – Mureinik
哦,等等,你的意思是[這些](http://en.cppreference.com/w/c/numeric/complex/creal)? – Mureinik
'arr [i] = CMPLX(a,b);' – EOF