C++ dynamic two dimension array declaration

前端 未结 0 1746
情话喂你
情话喂你 2021-01-25 09:46

With C++11, we can use

auto carrots{new double[rows][4]}

if we want to allocate dynamic two dimension array. Here I see another way to explicitly

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