no save
Assistance
Achat
News

Forum | programmation
heritage en c++ : gerer les constructeurs.
floverdevel, le sam. 26 janv. 2002 à 03:15:39
Tu ne devrais pas ecrire :
cout<<"Nom case ?\n";
cin >> nom;
cout << "Propriete ou Bonus (p / b)\n";
char c;
cin >> c;

dans ton constructeur mais bien dans ton code principal,et selon
la réponse tu pourra instancier soit un Propriete ou un Bonus

Le fais d'instancier Propriete ou Bonus va appeler le constructeur
de celui-ci et ainsi appeler le constructeur de son/ses parent(s)...

Ellis
No 'one' can be told what the matrix is.
You'll have to explore it yourself.
Précédenttafiscobar
janv. 02
merzougui
janv. 02
Suivant
REPONSES
zebiloute
janv. 02
Colt Siver
janv. 02
tafiscobar
janv. 02
floverdevel
janv. 02
merzougui
janv. 02
chmanu
janv. 02
tafiscobar
janv. 02
chmanu
janv. 02
tafiscobar
janv. 02
chmanu
janv. 02
Version Web
Réalisé par RedShift
no save