no save
Assistance
Achat
News

Forum | programmation
structure en c
Ted, le jeu. 30 mai 2002 à 12:55:20
je reprends :

struct Noeud {
char *traduction;
char *origine;
struct Noeud *gauche;
struct Noeud *droit;
};

struct Noeud *nouveau;
if( nouveau=(struct Noeud *)malloc(sizeof(struct Noeud))==NULL)
{
prinft("probleme d allocation memoire sur nouveau");
exit(1);
}
if( nouveau->origine = (char*)malloc( sizeof(char) ) == NULL)
{
prinft("probleme d allocation memoire sur nouveau->origine");
exit(1);
}

apres fe gaffe origine ne peut contenir kun seul caractere donc il faut pas de strcpy(machin ...
Précédentlolo
mai 02
lolo
mai 02
Suivant
REPONSES
ariock
mai 02
lolo
mai 02
Ted
mai 02
Ted
mai 02
lolo
mai 02
Ted
mai 02
lolo
mai 02
Ted
mai 02
lolo
mai 02
Ted
mai 02
Version Web
Réalisé par RedShift
no save