Should I have initialized it differently? as in Post #3 when Eielef advised possibly using some constant sizes? eg 25x25 50x50
With the array, once it initializes with 'd1' 'd2' the array doesnt...
Type: Posts; User: titanicmango
Should I have initialized it differently? as in Post #3 when Eielef advised possibly using some constant sizes? eg 25x25 50x50
With the array, once it initializes with 'd1' 'd2' the array doesnt...
hmm, now that i am using a different computer, it is working fine, thanks anyway. sorry for wasting time.
#include <iostream>
using namespace std;
int main()
{
int d1;
int d2;
int gameboard[d1][d2];
sorry the 2nd example is suppose to 2 seperate print outs, seems to have put them together,
iv re written them here.
1st (what it is printing out)
0 0 1 1 0
0 0 1 1 0
0 0 1 1 0
0 0 1 1 0
0...
the custom sized array doesnt seem to have an issue. will look into std::vector though, thanks for that advice.
if i comment lines 23, 24. and compile/run, the program runs properly, (as i test iv...
Hello, im trying to make a command prompt based battle ships game, with a little AI in placing the ships. I am only up to drawing the game board and i am already stuck. here is my current code.
...