This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-03-10 20:32:51 +03:00

13 lines
335 B
ObjectPascal

// Использование динамического массива.
var a: array of integer;
begin
writeln('SetLength при повторном вызове не портит старые элементы:');
SetLength(a,5);
for var i:=0 to a.Length-1 do
a[i] := i+1;
a.Println;
SetLength(a,10);
a.Println;
end.