#include <iostream>
#include "complex.h"

using namespace std;

complex::complex(double re, double im)
{
    this -> re = 5;
    this -> im = 5;
    cout << "construction d'un complexe" << endl;
}

complex::complex(const complex & copie)
{
    this -> re = copie.re;
    this -> im = copie.im;
    cout << "construction par copie" << endl;
}

complex::~complex()
{
    cout << "destruction d'un complexe" << endl;
}

void complex::print() const
{
    cout << "partie reelle = " << re << endl;
    cout << "partie imaginaire = " << im << endl;
}

