OK, I'm having trouble accessing a nested 2dimensional array.
First of all I an create a dynamic table of pointers to structures and allocate space for the structures, I could call this dynamic array something like 'array' for simplicity. So if I want to access an element 'size' within the structure located at (2, 4) I could simply do:
array[2][4].size
I can do this and it works fine, but I actually have another dynamic 2dimensional defined in the structure, lets call it 'doh'.
I am (I think) able to allocate space for this array but when I try to access an element like this:
array[2][4].doh[1][6].elem
ent
It just crashes the program completely!
What am I doing wrong here or if it's alright then what might be the cause of it? I trapsed all through my program and can't find anything to account for this.
I've given all the points I have left for this question (at the time of writing) but (knowing me) I bet it'll be a simple syntaxial error anyway :]
Dmatter
Start Free Trial