So I am teaching myself C++ and I have a doubt about arrays. I know that if I declare a 2D array like:

```
char board[8][8];

```

I create a 2D array with a height and a width of 8. But, I was wondering if there is a way to set those dimensions to variables so the user can input the height and width they want, I tried this in C++ and visual studio wasn't happy.

```
int rowSize = 0;  
int colSize = 0;
cin >> rowSize >> colSize;
char board[rowSize][colSize];

```

can anyone help me?