home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- type
- XYZ = record
- a : integer;
- b : real;
- c : string[32];
- end;
-
- procedure Init( aa : integer; bb : real; cc : string;
- var Rec : XYZ);
- begin
- with Rec do
- begin
- a := aa;
- b := bb;
- c := cc;
- end;
- end;
-
- var
- R : XYZ;
-
- begin
-
- Init( 1234, 2.712,
- 'The string is 32 characters long', R);
- writeln( 'The integer value is ', R.a );
- writeln( 'The string value is ', R.c );
- writeln( 'The real value is ', R.b );
-
- end.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-