_Imaginary_I宏
概要:
#define _Imaginary_I constant-expression
描述:
该宏会扩展为const float _Imaginary类型的、值为虚数单位的常量表达式。
当且仅当实现支持虚数类型时,宏_Imaginary_I才会被定义。
范例:
|
|
可能输出:
z = 3.30 + 3.50i
注:由于目前编译器对虚数的支持都不够理想,上述程序的运行结果并未得到验证。
相关内容:
imaginary | 表示虚数类型的宏。 |