Accueil     Soft. MacOSX     Soft. MacOS/PC     PHP     Python     ROMS GBA     TP d'info     DBZ-GT     Martingales     Galeries     Liens     @  

Exercice du TD11

program td11;
uses
u_arbre; { u_arbre est disponible sur mon site ;-) }
var
a, b, c, d: arbre;

begin
writeln;
writeln(' TD11 - Correction de Didier ');
writeln('©2001 All Rights Reserved to www.Software-DS.com');
writeln;

b := Creat_noeud('y', nil, nil);
c := Creat_noeud('z', nil, nil);
a := Creat_noeud('+', b, c);

b := Creat_noeud('z', nil, nil);
c := Creat_noeud('*', b, a);

b := Creat_noeud('x', nil, nil);
a := Creat_noeud('-', b, c);

b := Creat_noeud('y', nil, nil);
c := Creat_noeud('x', nil, nil);
d := Creat_noeud('/', b, c);

b := Creat_noeud('*', a, d);

writeln('Parcours prefixe:');
Parcours_prefixe(b);
writeln;
writeln;
writeln('Parcours infixe');
Parcours_infixe(b);
writeln;
writeln;
writeln('Parcours postfixe');
Parcours_postfixe(b);
writeln;
writeln('Made wih Macintosh, Think Different !');
Vide_arbre(b);
{ Desallocation ! }
{ ©2001 All Rights Reserved to www.Software-DS.com 18/12/01 }
end.

Reponse a la question 4




Haut de la page - Page précédente - Page générée en 0.00324 sec.
Recherche personnalisée
 

1843954 visiteurs.   ©2001-2023 All Rights Reserved to Software-DS.com
Made with a mac  
Confidentialité