Basically I want to set up a 3-dimensional array, but I want to dynamically allocate memory for it.
Say I read 3 variables from a file, all ints:
f, s, and v.
i want to allocate memory for
array[f][s][v]
array is part of a struct
How would I go about doing this?
I did search google, but only came up with solutions for 1D arrays