For loop logic error?
<pre><code>void GameBoard::print(const GameBoard&amp; computerBoard)
{
Grid[0][0] = '1';
Grid[0][1] = '2';
Grid[1][0] = '3';

int i, j;
int sides = SIZE;

cout &lt;&lt; "        Your bombs:                    Your navy:" &lt;&lt; endl &lt;&lt; endl;

for(i=0; i&lt;SIZE; i++)
{
    // prints your bombs
    cout &lt;&lt; sides &lt;&lt; "  ";
    for(j=0; j&lt;SIZE; j++)
    {
        cout &lt;&lt; computerBoard.Grid[i][j] &lt;&lt; "  ";
    }
    cout &lt;&lt; "    ";

    // prints your ships
    cout &lt;&lt; sides &lt;&lt; "  ";
    for(j=0; j&lt;SIZE; j++)
    {
        cout &lt;&lt; Grid[i][j] &lt;&lt; "  ";
    }
    cout &lt;&lt; endl &lt;&lt; endl;
    sides--;
}

j = 0;
cout &lt;&lt; "\n   ";

for(i=0; i&lt;SIZE; i++)
{
    j = i + 'A';
    cout &lt;&lt; (char)j &lt;&lt; "  ";
}
cout &lt;&lt; "       ";

for(i=0; i&lt;SIZE; i++)
{
    j = i + 'A';
    cout &lt;&lt; (char)j &lt;&lt; "  ";
}
cout &lt;&lt; endl &lt;&lt; endl;
</code></pre>

<p>}</p>

<p>I am constructing a game like battleship, and need to change the for loop to read..</p>

<pre><code>for(i=8;i&gt;0;i--)
</code></pre>

<p>why does this produce an error?</p>

<p>Sorry if this doesnt make sense, Grid[0][0] should be on the bottom left, but it is currently at the top left.</p>
