#ifndef COMPLEX_H
#define COMPLEX_H

#include <iostream>


class Complex
{
 public:
    Complex(double real, double imaginary);
    double getReal() const;
    double getImaginary() const;
    
    Complex operator+(Complex& c2);
    Complex operator*(Complex& c2);
    Complex operator-(Complex& c2);
    Complex operator+(double d);

    static int getNumberInstances();
    static const Complex J;

 private:
    double real;
    double imaginary;
    static int numberInstances;

};

using namespace std;
ostream& operator<<(ostream& s, const Complex& z);
Complex operator+(double d, const Complex& c);




#endif
