|
|
#include <complex.h>class complex {
public: friend complex operator+(complex, complex) throw(); friend complex operator-(complex) throw(); friend complex operator-(complex, complex) throw(); friend complex operator*(complex, complex) throw(); friend complex operator/(complex, complex) throw();
friend int operator==(complex, complex) throw(); friend int operator!=(complex, complex) throw();
void operator+=(complex) throw(); void operator-=(complex) throw(); void operator*=(complex) throw(); void operator/=(complex) throw();
};
Arithmetic operators:
Comparison operators: