如何将一维数组的索引转换为二维数组?我知道如何将 2D 数组转换为 1D (i*the size of row+j)。我想要相反的。
(i*the size of row+j)
c++ arrays indexing matrix
arrays ×1
c++ ×1
indexing ×1
matrix ×1