Apr 20, 2017 at 12:40pm
A type like int[][]
does not exists. As a parameter you can leave the inner most [] empty but any extra dimension requires the size:
std::unique_ptr<int[][10]> myArray(new int [10][10] {});
Apr 21, 2017 at 6:56am
Thanks very much everyone, you have been a great help.
James
Last edited on Apr 21, 2017 at 7:00am