Hi people, I have a problem with my mine game which uses two 2D arrays. I'd be much appreciated if you could help me with my problem

one 2D array generates random 0's and 1's like a grid..

the other 2D uses '?' and if the first 2D array equals 0 or 1... the second 2D array replaces the '?' with a m or e.. meaning empty or mine.

so when I get this to run the first time around it works perfectly and then when I enter my second set of x and y co-ordinates it

replaces the old 'e' or 'm' with a '?' .. It's super frustrating and I've been stuck with it for days.. I'm a newb to c++ and would greatly appreciate if anyone knows a solution or suggestion??

Much appreciated and Thanks!