How to allocate a 3d array such that you can use the indecies to access its elements

Thanks for the explanation, this is some new information to me!