 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I'd like to create a 2D array.
I know it can't be dynamic, so I need to declare it like
#declare array = array [m][n];
Do I _have_ to now define the _whole_ 2D array, or is there a syntax to define a
single "row" at a time?
#declare Array [3] = {n elements}; isn't allowed, but is there some functional
equivalent? I'm drawing a blank.
I'll probably have to loop from Array [3][0] to Array [3][n], won't I?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> I'd like to create a 2D array.
> I know it can't be dynamic, so I need to declare it like
> #declare array = array [m][n];
>
> Do I _have_ to now define the _whole_ 2D array, or is there a syntax to define a
> single "row" at a time?
>
> #declare Array [3] = {n elements}; isn't allowed, but is there some functional
> equivalent? I'm drawing a blank.
>
> I'll probably have to loop from Array [3][0] to Array [3][n], won't I?
You could write a macro to this. But it would be easier just to loop through.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"Bald Eagle" <cre### [at] netscape net> wrote:
> Do I _have_ to now define the _whole_ 2D array, or is there a syntax to define a
> single "row" at a time?
I'm sure you found a solution already. fwiw I've just posted some code in
p.t.s-f (subject 'queues') which might be (might have been) useful.
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |