I need to create 2d array in c++.
I can\'t do it by int mas= new int[x][y]; or auto mas= new int[x][y]; I need to create an array dynamical
int mas= new int[x][y];
auto mas= new int[x][y];
You can do the manipulations yourself.
int* mas = new int[x*y];
and access [i,j] by:
mas[i*y + j] = someInt; otherInt = mas[i*y +j];