1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
int m_x = 5; //for testing
int m_y = 5; //for testing
char m_build [m_x] [m_y] {
{3,1,0,1,2},//for testing
{3,1,0,1,2},//for testing
{3,1,0,1,2},//for testing
{3,1,0,1,2},//for testing
{3,1,0,1,2} //for testing
};
for (int i = 0; i < m_x; i++) {
for (int j = 0; j < m_y; j++) {
if (i != m_x / 5 ) { //for testing
cout << m_build [i] [j];
}
else {
cout << "\n" << m_build [i] [j];
}
}
}
|