Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- class Complex {
- double re;
- double im;
- public:
- Complex(double real_part, double imag_part);
- ~Complex();
- Complex operator+(const Complex& rhs);
- Complex operator*(const Complex& rhs);
- Complex operator*(const int rhs);
- Complex operator*(const double rhs);
- Complex& operator+=(const Complex& c1);
- friend std::ostream& operator<<(std::ostream& os, const Complex& rhs);
- std::ostream& operator<<(std::ostream& os);
- // +=
- // (int/double/complex)*(int/double/complex)
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement