I'm trying to create Minesweeper and I need help with 2D Multidimensional character Arrays, It doesnt appear like in a grid format i want it to.
#include<iostream>
#include<conio.h>
#include<string>
#include<cstdlib>
#include<ctime>
using namespace std;
int main ()
{
//A Message welcoming the user to minesweeper
cout<< "Welcome to Minesweeper!" <<endl;
char coveredarray [5][5] = {{'?','?','?','?','?'},
{'?','?','?','?','?'},
{'?','?','?','?','?'},
{'?','?','?','?','?'},
{'?','?','?','?','?'}},
for (int row=0; row;<5 row;++)
for(int column=0; column;<5); column;++)
cout<<coveredarray[row][column]<<" ");