Answer the question
In order to leave comments, you need to log in
Nested loops in Pascal?
Hello! I am writing a small program in Pascal (Pascal ABC):
uses GraphABC, Arrays;
var map:array[,] of integer;
var xsize, ysize, x, y:integer;
begin
...
for x := 0 to xsize-1 do
for y := 0 to ysize-1 do
map[x, y] := 1;
...
end.
for y := 0 to ysize-1 do
: Answer the question
In order to leave comments, you need to log in
your array is dynamic. Try allocating memory for it first: setLength(map, xsize, ysize)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question