Je suis un débutant en sml quelqu'un pourait il m'aider avec un code qui créé un arbre en sml? Je veux me baser sur cela. Merci d'avance
Elmoricq
Modérateur
Posté le 12-02-2008 à 16:40:30
Non, on ne fait pas le travail à ta place, pose plutôt des questions sur ce qui te pose problème.
gokab
Posté le 12-02-2008 à 17:07:02
Excusez moi je ne demande pas de faire le travail à ma place! mais il se trouve que j'ai besoin d'un point de départ.
fun creerarbre str =
gokab
Posté le 12-02-2008 à 17:10:01
Voici par exemple l'agorithme que je fais arbre tmp;
tmp = (Noeud*) malloc(sizeof(Noeud));
if (tmp != NULL)
{ tmp->info = info;
tmp->card = 1;
tmp->gauche = NULL;
tmp->droite = NULL;
}
return tmp;
}
j'ai besoin de le coder en ml Merci
Voici par exemple l'agorithme que je fais arbre tmp;
tmp = (Noeud*) malloc(sizeof(Noeud));
if (tmp != NULL)
{ tmp->info = info;
tmp->card = 1;
tmp->gauche = NULL;
tmp->droite = NULL;
}
return tmp;
}
j'ai besoin de le coder en ml Merci
---------------
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?