【发布时间】:2011-10-30 09:30:38
【问题描述】:
我需要在 C++ 中创建二维数组。
int mas= new int[x][y]; 或 auto mas= new int[x][y]; 我做不到
我需要动态创建一个数组,例如:
int x,y
auto mas= new int[x][y];//error - must be const.
请帮帮我。
【问题讨论】:
-
你应该得到一本好书:stackoverflow.com/questions/388242/…