Creating dynamic 2D array c++

后端 未结 0 1328
野性不改
野性不改 2021-02-01 12:31

From what I know, declaring a dynamic array is:

int *array = new int[x];

My question is, how can I declare a dynamic 2D array?

For example

相关标签:
回答
  • 消灭零回复
提交回复
热议问题