Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.46 KB | None | 0 0
  1.       procedure Postorder (Tree : in Tree_Type) is
  2.                   x:Integer:=1;
  3.  
  4.       begin
  5.          if Tree /= null then
  6.             Postorder (Tree => Tree.Left);    -- Traverse Left subtree
  7.             Postorder (Tree => Tree.Right);   -- Traverse Right subtree
  8.          elsif Tree = null then
  9.             x:=0;
  10.          end if;
  11.          if x=0 then
  12.             Checked_Process (Tree.Info);
  13.             x:=1;
  14.          end if;
  15.       end Postorder;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement