1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#include <iostream>
#include <iomanip>
using namespace std;
void outputMap();
const int nMatrixSizeX = 11;
const int nMatrixSizeY = 11;
int nScenario[nMatrixSizeX][nMatrixSizeY] =
{
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0}
};
int main()
{
outputMap();
system("PAUSE");
return 0;
}
void outputMap()
{
for(int i = nMatrixSizeX; i > -1; i--)
{
for(int n = 0; n < nMatrixSizeY ; n++)
{
cout << setw(2) << nScenario[i][n] << setw(1);
}
cout << endl;
}
cout << endl;
}
|