Add values to an Array with a for loop?

I'm making a game in c++ that requires a board using an array, but each array needs a value for the spacing to be correct in the board. I made the board before realizing this, so when values are added the board gets all misaligned. I asked my friend for help, but all he would tell me was to put a for loop inside a for loop and I'm not sure where he was going with that. So if i could just get a way to assign spaces(values) to my multidimensional array, I would greatly appreciate it.
Rephrase your problem please. Do you want to fill a 2d char array with ' 's ? What does misaligned board look like? Does adding values mean shifting the rest of the array to make space for that value?
The board is built with Underscores and "|" 's, to make a big grid, with array values in each box. I just want each value in the array to equal " ", so when values are added, like letters, the board wont get misaligned. Right now, adding a value makes all the walls shift to the right and I'll have to fix them all after i give the values to all the arrays.
Is that a char array (I'm not sure if null char takes up no space though) or as string array?
Either way,
1
2
3
4
SomeType my_array[W][H];
for(int i = 0; i < W; i++)
for(int j = 0; j < H; j++)
   my_array[i][j] = FillSymbol;

If SomeType is char, FillSymbol is ' '.
If SomeType is string, FillSymbol is " " or maybe something longer.
That worked perfectly, thanks very much!
Topic archived. No new replies allowed.