1 2 3 4 5 6 7 8 9 10 11 12
|
int main ()
{
char m_board[3][5] = {{'-','-','-','-','-'},{'-','-','-','-','-'},{'-','-','-','-','-'}};
char m_board2[3][5] = {{'-','-','-','-','-'},{'-','0','-','-','-'},{'-','-','-','-','-'}};
std::vector<char> char_vect (m_board, m_board + 5 );
for (std::vector<char>::iterator it = char_vect.begin(); it != char_vect.end(); ++it)
std::cout << ' ' << *it;
std::cout << '\n';
return 0;
}
|