C++ code explanation for game.

Hi guys im in my first year of uni doing programming, I'm making minesweeper and I need to list all the variables and stuff and explain what they do but the function that draws the board I can't understand what it's doing, can someone help explain it?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  
void board(char array2[][8], int size) 

{

	int a = 178;
	for (int m = 0; m<size; m++) 

       {
		for (int j = 0; j<size; j++) 
		
		{

			array2[m][j] = a;

		}
	}
}

Last edited on
That function does not "draw".

What is on line 14?
I've no idea bud, I got the source code online here is the full code... https://pastebin.com/0ArLHDkq
How about some more online material: http://www.cplusplus.com/doc/tutorial/
Topic archived. No new replies allowed.