Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arbre inserer(arbre a, demande d)
- {
- Tnoeud *nv;
- if(a==NULL)
- {
- nv=malloc(sizeof(Tnoeud));
- nv->d=d;
- nv->ABG=NULL;
- nv->ABD=NULL;
- }
- else
- {
- if(d.code > a->d.code)
- {
- a->ABD=inserer(a->ABD,d);
- }
- else
- {
- a->ABG=inserer(a->ABG,d);
- }
- return(a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement