+ 1
Can we give a variable size to a 2D array in c++
I need to use it to make a grid with defined width and changing length , how can I do it
1 Antwort
+ 3
If you don't wanna fixed size 2d array you can use vector of vectors: std::vector<std::vector<int>> someArray;