Arrays and Collections in Object Pascal - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: Object Pascal Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=50) +--- Thread: Arrays and Collections in Object Pascal (/showthread.php?tid=5046) |
Arrays and Collections in Object Pascal - Qomplainerz - 07-25-2023 program ArrayExample; begin // Variable declaration var numbers: array[0..4] of Integer := (1, 2, 3, 4, 5); matrix: array[0..2, 0..1] of Double := ((1.0, 2.0), (3.0, 4.0), (5.0, 6.0)); names: array[0..1] of String := ('John', 'Amy'); // Output to screen WriteLn('Numbers:', numbers); WriteLn('Matrix:', matrix); WriteLn('Names:', names); end. |