multi dimensional array at runtime
I have 2 question:
1-)I know vector class in stl but i want to make a multi-dimensional array.While user enter some parameters its lengh will grow.
How can i do this with "pure c".Only way linked list?Or are there another ways?
i try :
It gives error.
using namespace std;
cout << "first number";
cin >> x; cout << "second nunmber";
cin >> y;
int * a = new int[x][y];
How can i declare multi dimensional array with new in c++