|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Arbre, seg_042a97
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io; package body Arbre is procedure Inserer (Racine : Pcell; Nom : Integer) is Cellule : Pcell; begin if Racine.Nom = Integer'Last then Racine.Nom := Nom; else if Nom < Racine.Nom then if Racine.Gauche = null then Cellule := new Cell'(Nom, null, null); Racine.Gauche := Cellule; else Inserer (Racine.Gauche, Nom); end if; else if Racine.Droite = null then Cellule := new Cell'(Nom, null, null); Racine.Droite := Cellule; else Inserer (Racine.Droite, Nom); end if; end if; end if; end Inserer; function New_Cell return Pcell is Cellule : Pcell; begin Cellule := new Cell'(Integer'Last, null, null); return Cellule; end New_Cell; procedure Afficher (Cellule : Pcell) is begin Text_Io.Put_Line (Integer'Image (Cellule.Nom)); end Afficher; procedure Iterer (Racine : Pcell) is begin if Racine.Gauche /= null then Iterer (Racine.Gauche); end if; Afficher (Racine); if Racine.Droite /= null then Iterer (Racine.Droite); end if; end Iterer; end Arbre;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=22 rec1=00 rec2=01 rec3=002 [0x01] rec0=14 rec1=00 rec2=02 rec3=001 tail 0x217437d76863065f57069 0x42a00088462060003