I need to declare a bidimensional arrey but using dynamic memory. (C++)
I used:
int x,y;
cin>>x;
cin>>y;
int **m=new[x][y];
ERROR: Parse error before '['
I also used:
int **m= new int[x][y];
ERROR: Assigment to 'int **' from 'int (*)[((y-1)+1)]'
please help me...



LinkBack URL
About LinkBacks



