Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. procedure Vider (Abr : in out T_ABR) is
  2. begin
  3. if Abr = Null then
  4. Null;
  5. else
  6. Vider (Abr.all.Sous_Arbre_Gauche);
  7. Vider (Abr.all.Sous_Arbre_Droit);
  8. Free (Abr);
  9. end if;
  10. end Vider;
  11.  
  12.  
  13. procedure Afficher (Abr : in T_Abr) is
  14. begin
  15. if Abr = Null then
  16. Null;
  17. else
  18. Afficher (Abr.all.Sous_Arbre_Gauche);
  19. Put (Abr.all.Cle);
  20. put (" : ");
  21. Put (Abr.all.Donnee, 0);
  22. New_Line;
  23. Afficher (Abr.all.Sous_Arbre_Droit);
  24. end if;
  25. end Afficher;
  26.  
  27.  
  28. procedure Afficher_Debug (Abr : in T_Abr) is
  29.  
  30. procedure Indenter(Decalage : in Integer) is
  31. begin
  32. for I in 1..Decalage loop
  33. Put (' ');
  34. end loop;
  35. end Indenter;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement