|
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 Histogramme, seg_02d309
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Text_Io; package body Histogramme is type Objet is record L_Element : Element; Sa_Quantite : Natural := 0; end record; H : array (1 .. Max) of Objet; procedure Initialiser is I : Integer; begin for I in 1 .. Max loop H (I).Sa_Quantite := 0; end loop; end Initialiser; procedure Ajouter (El : Element) is Existe : Boolean := False; Cardinalite : Positive := 1; begin Cardinalite := 1; while not Existe and not Dernier_Element (Cardinalite) loop if H (Cardinalite).L_Element = El then Existe := True; end if; Cardinalite := Cardinalite + 1; end loop; if Existe then H (Cardinalite).Sa_Quantite := H (Cardinalite).Sa_Quantite + 1; else H (Cardinalite).L_Element := El; H (Cardinalite).Sa_Quantite := 1; end if; end Ajouter; procedure Put is Cardinalite : Natural := 1; begin Cardinalite := 1; Text_Io.Put_Line ("Classe Quantite Histogramme"); Text_Io.Put_Line (""); while not Dernier_Element (Cardinalite) loop Text_Io.Put_Line ("Un element"); -- Text_Io.Put (H (Cardinalite).L_Element); -- Text_Io.Put (H (Cardinalite).Sa_Quantite); Cardinalite := Cardinalite + 1; end loop; end Put; function Dernier_Element (Pos : Natural) return Boolean is begin return H (Pos).Sa_Quantite = 0; end Dernier_Element; end Histogramme;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=23 rec1=00 rec2=01 rec3=040 [0x01] rec0=19 rec1=00 rec2=02 rec3=001 tail 0x2152643d4843f587afb17 0x42a00088462060003