C++: Outputing Multidimensional Arrays on loop?
<p>Hi everybody I have being trying to do this the whole morning but I can't seem to make it work and is to output a multidimensional array on a loop, let me explain better with a non multidimensional one:</p>

<pre><code>int j;
int line[4] = {1, 2, 3, 4,};


  for(j = 0; j &lt; 4; j ++)
  {

      cout &lt;&lt; line[j] &lt;&lt; endl;

  }
</code></pre>

<p>This works but when for multidimensional arrays comes its headache:</p>

<pre><code>int i, j;
int line[2][2];

line[0][0] = 99;
line[0][1] = 98;
line[1][0] = 97;
line[1][1] = 96;

i = 0;
j = 0;

for(j; j &lt;= 1; j ++)
{
    for(i; i &lt;= j; i ++)
    {
        cout &lt;&lt; line[i][j] &lt;&lt; endl;
    }
}
</code></pre>

<p>Can somebody help me?</p>
