variable sized multidimensional array

I've been looking around on how to create a 2D int array in C++ with a size based on variables. I know you can't just declare it as something with int matrix[x][y] where x and y are not determined before compiling. the only i found was with pointers

int * matrix;
matrix = new int[x];

but that will only create a 1D array is there a way to create a 2D [x][y] variable sized int array? I'm using either MVS 2008 or Kdevelop as an IDE.

thanks!
Topic archived. No new replies allowed.