fork download
  1. #include <iostream>
  2. using namespace std;
  3. const int Y_DIM = 8;
  4. const int X_DIM = 9;
  5. void initializeArray() {
  6. char map[Y_DIM][X_DIM];
  7. for (int row = 0; row < Y_DIM; row++)
  8. {
  9. for (int col = 0; col < X_DIM; col++)
  10. {
  11. map[row][col]='*';
  12. cout << map[row][col];
  13. }
  14. cout << "\n";
  15. }
  16. }
  17. int main() {
  18. initializeArray();
  19. return 0;
  20. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
*********
*********
*********
*********
*********
*********
*********
*********