#include <iostream.h>

class Douteux2{
public :
  int donnees;
  Douteux2(void);
  Douteux2(const Douteux2 & ancien);
  Douteux2 & operator = (const Douteux2 & ancien_douteux);
};


Douteux2 :: Douteux2(void) {
  donnees=0;
}

Douteux2 :: Douteux2(const Douteux2 & ancien){
  cout << "appel du constructeur de copie \n";
  *this = ancien;
}


Douteux2 & Douteux2 :: operator = (const Douteux2 & ancien_douteux){
  cout << "appel de l'opérateur =\n";
  donnees = ancien_douteux.donnees;
  return(*this);
}

int main(){
  Douteux2 d1;
  cout << "d1 construit...\n";
  Douteux2 d2(d1);

  return(0);
}

