Hi
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?
2-)In c++
i try :
It gives error.Code:#include <iostream> using namespace std; int main() { int x,y; cout << "first number"; cin >> x; cout << "second nunmber"; cin >> y; int * a[][] = new int[x][y]; delete[] a; return 0; }
How can i declare multi dimensional array with new in c++
thanks.



LinkBack URL
About LinkBacks




Want to add some