有,
C++
内含
C
C++编译器内含C编译器
C++库内含C库
C一直都有 complex 的
BC++
math.h
#ifdef __cplusplus
/* use class complex instead of cabs in C++ */
#else
struct complex /* as used by "cabs" function */
{
double x, y;
};
struct _complexl /* as used by "cabsl" function */
{
long double x, y;
};
#define cabs(z) (hypot ((z).x, (z).y))
#define cabsl(z) (hypotl ((z).x, (z).y))
#endif,
BC++有 complex.h 内有 complex 类
现代C++有 <complex> 头 ,内有complex模板类
C99 有Complex.h 内有_Complex并且
#define complex _Complex