This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6000 compiler 在使用复数时怎么对变量操作



头文件包括了 complex.h, 定义变量 : float  complex x;

然后对x操作:x.re=5; x.im=6;

或者:

x.Val[0]=5; x.Val[0]=6;

都报错:变量x必须是结构体。