So try to write a program that allows the user to range the number of rows in the program. I was unable to figure out how I was able to do so using a char array. I know the code works when I do a static array it's just trying to figure out how I can change it dynamically. I'm still new to c++ to please explain in beginner terms.

```
#include <iostream>
using namespace std;

const int ROW = 7;
const int COL = 4;

void printArray(char s[][COL], int rowsize);
void pickSeat(char s[][COL], int rowsize, int numberofseats);

int main()
{
    int index = 0;

    int size;

    cout << "How many row do you wany:"<<endl;
    cin >> size;

    int row = 1;
    int seats = 28;
    char *arr;
    arr = new char[size][4];

    arr[7][4] =
    {
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' },
        {'A', 'B', 'C', 'D' }
    };

    char choice = 'y';

    while (tolower(choice) != 'n' && seats >= 0)
    {
        printArray(arr, row);
        pickSeat(arr, row, seats);

        printArray(arr, COL);
        cout << "Do want to ext? Enter anything to cotiune.(enter n to exit)";
        cin >> choice;

        seats--;
    }
    return 0;
}

void pickSeat(char s[][COL], int rowsize, int numberofseats)
{
    int r1, r2;

    cout << "Pick a seat enter row the colum.";
    cin >> r1;
    cin >> r2;

    if (s[r1 - 1][r2 - 1] == 'x')
    {
        cout << "this seat is taken" << endl;
        numberofseats++;

        pickSeat(s, rowsize, numberofseats);
    }
    else
    {
        s[r1 - 1][r2 - 1] = 'x';

    }

}

void printArray(char s[][COL], int rowsize)
{

    for (int i = 0; i < 7; i++)
    {
        cout << rowsize << " ";

        for (int j = 0; j < 4; j++)
        {
            cout << s[i][j];
            /*if (j == 1)
            {*/

            /*  }*/
        }
        cout << endl;
        rowsize++;

    }
    rowsize = 1;
}

```