Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
program array2d(input, output);
|
||||
|
||||
type
|
||||
tArray2d(dim1, dim2: integer) = array[1 .. dim1, 1 .. dim2] of real;
|
||||
pArray2D = ^tArray2D;
|
||||
|
||||
var
|
||||
d1, d2: integer;
|
||||
data: pArray2D;
|
||||
|
||||
begin
|
||||
{ read values }
|
||||
readln(d1, d2);
|
||||
|
||||
{ create array }
|
||||
new(data, d1, d2);
|
||||
|
||||
{ write element }
|
||||
data^[1,1] := 3.5;
|
||||
|
||||
{ output element }
|
||||
writeln(data^[1,1]);
|
||||
|
||||
{ get rid of array }
|
||||
dispose(data);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue