#include "complex.h" Complex::Complex(double r, double i) { re = r, im = i; } double Complex::real(){ return re; } double Complex::imag(){ return im; } bool Complex::operator==(Complex &b) { return re == b.real() && im == b.imag(); } /* bool operator==(const Complex &a, const Complex &b) { return a.real() == b.real() && a.imag() == b.imag(); } */