Dynamic Memory allocation of 3d array or more

I am learning c++ and I have been coding in it for 3 months now. I am comfortable with array, 2 dimensional array and dynamic allocation of memory. So I can use pointers comfortably. But yesterday I tried to dynamically allocate an array with more than two dimensions and I could not do it. I followed the simple steps which are used in 2 dimensional array but it didn't work. How can we use pointers to dynamically allocate a 3 dimensional array or more?
