Bit tricky to explain this.. plenty of head scratching involved !.
I need to indirectly reference an array, so I need something like index[10]
But with those 10 array places I need to reference a number of sub references..
kinda like, index[10,5]
But the problem is.. although I know the lefthand number ("10") - which is fixed, I dont know how big the sub part is.. ("5")
Although I could run though the list, make a note of the total number of arrays needed - it wont be the same for every array.. so there could be alot of wasted space.
(lost yet ?)
Here's an example of what I'm trying to do:
index[1]=1
index[2]=1,2,3,4
index[3]=1,2,3,4,5,6
so although I could use "int index[2,6]"
theres alot of wasted space in index[0]. (since it will have room for 6 sub arrays)
As I've said though I cant just have them seperate.. int index1[3],int index2[6]..etc
Any help please chaps !.
I need to indirectly reference an array, so I need something like index[10]
But with those 10 array places I need to reference a number of sub references..
kinda like, index[10,5]
But the problem is.. although I know the lefthand number ("10") - which is fixed, I dont know how big the sub part is.. ("5")
Although I could run though the list, make a note of the total number of arrays needed - it wont be the same for every array.. so there could be alot of wasted space.
(lost yet ?)
Here's an example of what I'm trying to do:
index[1]=1
index[2]=1,2,3,4
index[3]=1,2,3,4,5,6
so although I could use "int index[2,6]"
theres alot of wasted space in index[0]. (since it will have room for 6 sub arrays)
As I've said though I cant just have them seperate.. int index1[3],int index2[6]..etc
Any help please chaps !.