title: Three dimensional arrays of integers in C++
body: <p>I would like to find out safe ways of implementing three dimensional arrays of integers in C++, using pointer arithmetic / dynamic memory allocation, or, alternatively using <code>STL</code> techniques such as vectors.</p>
  
  <p>Essentially I want my integer array dimensions to look like:</p>
  
  <pre><code>[ x ][ y ][ z ]
  </code></pre>
  
  <p>x and y are in the range 20-6000
  z is known and equals 4.</p>