Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
MODULE TestArray;
|
||||
(* Implemented in BlackBox Component Builder *)
|
||||
|
||||
IMPORT Out;
|
||||
|
||||
(* Open array *)
|
||||
|
||||
PROCEDURE DoTwoDim*;
|
||||
VAR d: POINTER TO ARRAY OF ARRAY OF INTEGER;
|
||||
BEGIN
|
||||
NEW(d, 5, 4); (* allocating array in memory *)
|
||||
d[1, 2] := 100; (* second row, third column element *)
|
||||
d[4, 3] := -100; (* fifth row, fourth column element *)
|
||||
Out.Int(d[1, 2], 0); Out.Ln;
|
||||
Out.Int(d[4, 3], 0); Out.Ln;
|
||||
END DoTwoDim;
|
||||
|
||||
END TestArray.
|
||||
Loading…
Add table
Add a link
Reference in a new issue