私はmultidumentional配列statndardの道を作成する方法を知っている:多次元配列intを指すポインタをC++で作成する方法は?
const int m = 12;
const int y = 3;
int sales[y][n];
をそして、私は1次元配列を指すポインタを作成する方法を知っている:
int * ms = new int[m];
しかし、それはポインタを作成することが可能です多目的配列を指す?
int * sales = new int[y][m]; // doesn't work
int * mSales = new int[m]; // ok
int * ySales = new int[y]; // ok
mSales * ySales = new mSales[y]; // doesn't work, mSales is not a type
このようなポインタの作成方法は?
[C++で配列を使うにはどうすればいいですか?](http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c) – fredoverflow