|
Bas de page | |
---|---|
Auteur | Sujet : Petit problème avec un héritage : constructeur incorrect ? |
![]() Publicité | Posté le 13-11-2004 à 10:42:04 ![]() ![]() |
el muchacho Comfortably Numb | Le compilo te dit que tu n'as pas écrit le constructeur de type_piece, c'est tout. |
Master_Jul | Ah non, c'était bien ça el muchacho, j'ai simplement fait un petit constructeur :
Message édité par Master_Jul le 13-11-2004 à 11:40:45 --------------- En français, on écrit "connexion", pas "connection". |
Master_Jul | En fait, il y a un autre problème.
--------------- En français, on écrit "connexion", pas "connection". |
Taz bisounours-codeur | et hop, je veux des std::string
|
Master_Jul | Voilà, c'est fait. --------------- En français, on écrit "connexion", pas "connection". |
Lam's Profil: bas. | Bah maintenant, appelle le constructeur de la classe mère depuis le constructeur de la classe dérivée...
|
Master_Jul | Ca le fait déjà tout seul, quand on passe en argument "typ_piece t", il va chercher le constructeur.
--------------- En français, on écrit "connexion", pas "connection". |
Master_Jul | --------------- En français, on écrit "connexion", pas "connection". |
Lam's Profil: bas. | Ca sert à rien de upper, je t'ai dit ce qui n'allait pas.
|
![]() Publicité | Posté le 13-11-2004 à 22:12:56 ![]() ![]() |
masklinn í dag viðrar vel til loftárása | Comme dit Lam's. Message édité par masklinn le 13-11-2004 à 22:23:38 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Master_Jul | J'appelle le contructeur de la classe mère depuis le constructeur de la classe dérivée, ce qui donne :
Message édité par Master_Jul le 13-11-2004 à 22:27:33 --------------- En français, on écrit "connexion", pas "connection". |
Lam's Profil: bas. |
|
Master_Jul | Merci Lam's, on m'a appris avec la seconde solution, que je comprend pour "typ_piece(str,c)" mais le problème doit venir du fait que je ne connais pas l'écriture "typ_piece(t)". Message édité par Master_Jul le 13-11-2004 à 22:47:20 --------------- En français, on écrit "connexion", pas "connection". |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 13-11-2004 à 22:51:15 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Lam's Profil: bas. |
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Master_Jul |
Message édité par Master_Jul le 13-11-2004 à 23:10:08 --------------- En français, on écrit "connexion", pas "connection". |
Lam's Profil: bas. |
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Master_Jul | typ_piece_prod::typ_piece_prod(typ_piece t, int b, int u, int r) |
masklinn í dag viðrar vel til loftárása | la classe complète --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Master_Jul | Ah, eh bien comme je le précisais, je n'ai que les deux fichiers d'entête précisé dans le premier post. |
Taz bisounours-codeur | il se passe quoi ici ? |
Master_Jul | Eh bien c'est cette syntaxe qui me dérange(ait) :
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | là c'est la même chose que du code a xterm ou je sais plus qui : tu utilise de l'héritage là où il n'y en pas besoin. Ou alors tu l'utilise bien.
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 14-11-2004 à 13:28:11 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | sauf que là c'est pas de l'héritage conceptuellement ... |
![]() Publicité | Posté le ![]() ![]() |
Sujets relatifs | |
---|---|
Problème d'affichage sous IE avec :hover | Probleme de WM_PAINT |
probleme avec un gethostbyaddr() | Petit probleme de pointeurs sur des tableaux d'une structure |
petit probleme... | probleme d' analyse syntaxique |
Probleme de dimension d'un SVG avec la balise EMBED | Probleme de backspace avec fprintf. |
Plus de sujets relatifs à : Petit problème avec un héritage : constructeur incorrect ? |