Home »
Public Forums »
archive »
Accessing 2D array from pointer array within structure
Accessing 2D array from pointer array within structure [message #31756] |
Thu, 15 August 2002 09:09 |
bjones8
Messages: 6 Registered: August 2002
|
Junior Member |
|
|
Hi!
I have a structure called "info" with an item called "img" which is a
pointer array. Each of these pointers point to an image (2D array).
IMG POINTER Array[5]
I want to be able to access the image via subscripts. Is it possible?
What is the syntax?
So something like
value=*info.img[3][130,453]
I know this is invalid....but something along those lines. Right now
my code does this, which is sloppy:
tmp=*info.img[3]
value=tmp[130,453]
I can't really find any info about doing this in the docs....
Thanks!
Brandon Jones
|
|
|
Current Time: Fri Oct 10 02:19:54 PDT 2025
Total time taken to generate the page: 0.39947 seconds