You can use pointers to implement, do this:
If it is one-dimensional, int * arr; / / can be other types (char, float ...) arr = new int [n]; // n must be an integer variable
Two-dimensional, so,
INT ** Arr; INT N, M; CIN >> N >> m; Arr = new int * [n]; for (int i = 0; i