Quote Originally Posted by titanicmango
Should I have initialized it differently? as in Post #3 when Eielef advised possibly using some constant sizes? eg 25x25 50x50
If you use constant sizes, then that means that you have decided on some maximum size of the array, and you work within those constraints. This is fine, if your maximum is not too large. If you use std::vector, then you would size dynamically according to your exact needs.

Quote Originally Posted by titanicmango
With the array, once it initializes with 'd1' 'd2' the array doesnt resize.
Yes, the variable length array feature as borrowed from C99 gives arrays that are not resizable once created.