I want to create 4 dimensional array, in that first three dimenstional are fixed size and the final index will be on 0 to N-numbers.

For eg,

**double array[500][25][10][<NOT FIXED>]**.. So I cant create statically, because the index size are more. Also I have tried 4 dimenstional vector, but its giving 2 problem.

(i) I am storing 4th dimenstion size is more than vector[0][0][0].max_size()

(ii) Storing and Retrieving its more time in vector

So Please let me know, if any other solution to store large array which is 3 index is FIXED and final one is not FIXED?

Looking for answer from anyone..

Thanks.