How to create a multi-dimension array in C Plus Plus
Posted on 2009-04-02
I need some help to create a multi-dimension array in C Plus Plus, but the user have to input the size of the array n x n.
The array has to be in simple C Plus Plus code with no class creation.
I try to make some thing like this, but dont work.
int main ()
int a, b;
cout<<"Define the size of the matrix.\n";
cin >> a;
But because i´m a noob on programming i can´t make it work. Please can you give me some help or directions.