Clearing values in a 2D array
<p>I've been doing some programming for a naughts and crosses program and the board is a 2D array. I have been trying to make the program repeat if the user wants to replay however I noticed that all of the values stay in the array when it is repeated. So I was wondering if there was a way to clear all of the values in my array.</p>

<p>I did try some previous questions on forums however some of the solutions I found didn't seem to work.</p>

<p>If anyone would like to see the code just comment and I will add it here, I just wasn't sure if it would be necessary.</p>

<p>Any help would be much appreciated.</p>

<pre><code>    const int Rows = 4;
    const int Columns = 4;
    char Board[Rows][Columns] = { {' ', ' ', ' ', ' ' },
                                  {' ', '_', '_', '_' },
                                  {' ', '_', '_', '_' },
                                  {' ', '_', '_', '_' } };


    for (int i = 0; i &lt; Rows; ++i)
    {
        for (int j = 0; j &lt; Columns; ++j)
            cout &lt;&lt; Board [i][j];
        cout &lt;&lt; endl;
    }

    cout &lt;&lt; endl &lt;&lt; endl;



    int row;
    int column;


    do
    {
        cout &lt;&lt; "Please enter the value of the row you would like to take ";
        cin &gt;&gt; row;
        }while (row != 0 &amp;&amp; row != 1 &amp;&amp; row != 2 &amp;&amp; row != 3);


    do
    {
        cout &lt;&lt; "Please enter the value of the column you would like to take ";
        cin &gt;&gt; column;
        }while (column != 0 &amp;&amp; column != 1 &amp;&amp; column != 2 &amp;&amp; column != 3);


    Board [row][column] = Player1.GetNorX();

            for (int i = 0; i &lt; Rows; ++i)
    {
        for (int j = 0; j &lt; Columns; ++j)
            cout &lt;&lt; Board [i][j];
        cout &lt;&lt; endl;
    }
</code></pre>
