A different approach for C++ 2d array.
#2d
https://medium.com/@patdhlk/c-2d-array-a-different-better-solution-6d371363ebf8
#2d
https://medium.com/@patdhlk/c-2d-array-a-different-better-solution-6d371363ebf8
Medium
C++ 2d array — a different better solution
[x][y] is a little heavier weight than it needs to be, and it allocates more blocks than you need. Multidimensional arrays only need one…