12.07.2015 Views

Sobrecarga de Operadores y E/S en C++

Sobrecarga de Operadores y E/S en C++

Sobrecarga de Operadores y E/S en C++

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Operadores</strong> Aritméticos• Suma <strong>de</strong> números complejos: Complejo Complejo::operator+ (const Complejo& z2) const { } Complejo res (0, 0); res.real = this->real + z2.real;res.img = this->img + z2.img; return res;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!