Categories
C++ Tic-tac-toe matrix of characters?
How to print a matrix from characters? For example: ... ... ... And for example, when collecting user coordinates, output: ... .x. ...
Answer the question
In order to leave comments, you need to log in
int main(int argc, char** argv) { char symbols[3][3] { { '.', '.', '.' }, { '.', '.', '.' }, { '.', '.', '.' } }; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { std::cout << symbols[i][j]; } std::cout << std::endl; } return 0; }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question