Hi everyone! I'm pretty new to coding so there's still much for me to learn.
Recently I've been working on creating this battleship program that utilizes a two-dimensional array, and basically you (P1) would be playing with the computer (P2), with the battleship's position completely random.
I succeeded in having the code work until I couldn't figure out how I'd put the characters "P1" into my multi dimensional array.
An excerpt of the code looks something like this;
1 2 3 4 5 6 7
for (int i=0; i<=len; i++)
In the beginning of the code, I have declared
variables len, r and c are of int types, and they are numbers I have input previously.
Hope the noble code masters here can help shed some light on my issue :)