title: multidimensional array in c++
body: <p>In java, multidimensional arrays of objects diclared like this (A is type of object):</p>
  
  <pre><code>A[][] array = new A[5][5];
  
  for(int i = 0;i&lt;5;i++){
      for(int j = 0;j&lt;5;j++){
          array[i][j] = new A();
      }
  }
  </code></pre>
  
  <p>how can I do the same in C++?</p>