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

Complex::Complex(double real, double imag)
{
  printf("This is the initializing constructor\n");
  x = real; y = imag;
}

Complex::Complex(Complex& original)
{
  printf("This is the copy constructor\n");
  x = original.x; y = original.y;
}

void Complex::read()
{
  scanf("%E%E", &x, &y);
}

void Complex::write()
{
  printf("%E %E\n", x, y);
}

void Complex::conjugate()
{
  y = -y;
}

