home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
win
/
fr
/
micropas
/
tableau.p
< prev
next >
Wrap
Text File
|
1994-09-20
|
541b
|
35 lines
program Tableau;
type arbre = ^noeud;
noeud = record
val : integer;
g,d : arbre;
end;
tps = array[1..5] of arbre;
pi = ^integer;
ti = array[1..5] of integer;
pti = ^ti;
var i : integer;
a : tps;
b : ti;
c : pti;
begin
new(c);
for i:=1 to 5 do
begin
new(a[i]);
a[i]^.val := i;
b[i] := i;
c^[i] := i;
end;
a[3]^.g := a[4];
a[3]^.d := a[2];
end.