#include #include "complex.h" using namespace std; std::ostream& operator<< (std::ostream& s, Complex& z) { return s << "[" << z.real() << ", " << z.imag() << "j]"<< std::endl; } /* Funcoes Globais Complex operator+( Complex& c1, Complex& c2 ) { return Complex(c1.re+c2.re, c1.im+c2.im); } Complex operator-( Complex& c1, Complex& c2 ) { return Complex(c1.re-c2.re, c1.im-c2.im ); } */