home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
win
/
fr
/
micropas
/
func.p
< prev
next >
Wrap
Text File
|
1994-11-08
|
334b
|
24 lines
program Fonction;
type liste = ^cellule;
cellule = record
a,b : integer;
end;
var x : integer;
y : liste;
z : cellule;
function Fact(s : cellule) : liste;
begin
new(Fact);
Fact^ := s;
end;
begin
x := 20 mod 3;
z.a := 3;
y := Fact(z);
end.