display an array table

Jul 29, 2013 at 3:17pm
hi everyone, i took some c++ classes in the summer. now the curse is over but i never learned how to display an array table. my last exercise was a complete failure just because that. i do not understand how to display the table properly.
some help will be appreciated!

Last edited on Jul 29, 2013 at 3:20pm
Jul 29, 2013 at 3:35pm
1
2
3
4
5
6
7
8
for(int column=0; column<x; column++)
{
     for (int row=0; row< y; row++)
     {
           cout << array[column][row] << " ";
     }
    cout << endl;
}
Jul 29, 2013 at 8:33pm
Thanks Albo Coder
Topic archived. No new replies allowed.