I have a file containing
12
12
0 0 0 1 0 1 0 1 0 1 0 1
1 0 0 1 0 1 0 0 1 0 0 0
1 1 1 1 0 1 0 0 0 0 0 1
1 0 1 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 1 0 1 0
1 0 0 1 0 1 0 0 0 1 0 0
1 0 0 0 0 1 0 0 1 0 0 1
0 0 0 0 0 1 0 1 0 1 0 0
0 0 1 0 1 0 1 0 1 0 1 1
0 0 1 0 1 0 1 0 1 0 0 0
0 0 0 0 0 1 0 1 0 0 0 0
0 0 1 0 0 0 0 1 0 1 0 0
I just want to read the grid and store into a dynamic array.
Could anyone please help me this?
Top comments (1)
The storage array must be 2D dynamic array