How to print a multidimesional array

Hey all,
quick question: if i wanted to print a multidimensional array (2D i suppose) how would I go about that? Example:

1
2
3
4
bool minefield [4][4] =     { {false, false, false, false},
                              {false, false, false, false},
                              {false, false, false, false},
                              {false, false, false, false} };


I know my best bet would be to replace all of the "false" statements with "0" but im drawing a blank.
The only thing I can honestly thing about trying is

cout << minefield << endl;

but I know that wouldn't accomplish much.
Any suggestions?

Thanks in advance
1
2
3
4
5
6
7
8
for (int i=0; i< dimension1; ++i)
{
  for (int j=0; j< dimension2; ++j)
  {
    cout << array[i][j];
  }
  cout << endl;
}
That did the trick!
Thanks moschops!
Topic archived. No new replies allowed.