I am really new to the gui side of c++. The problem that I am running into is I have 2 board one for the player and one for the comp. I am trying to creates a function that works with the onclick listen or eventhandler so I can place my ship but not really understanding how it work, so any help would be appreciated
The code is 3500 lines long so I'm not going to burden any one with that so I will just put he section where I am having the problem.
in the function where I change the text to "C" it is only suppose to do that six times then stop, but it lets me place it infinites times and I don't want to do that. Basically when I call it in the void button_1Click it stay in the p1_ship_sel function.