In my program I have a number of classes. In one of these a 2D array of structs is created using
array = new Variables *[rows];
for (int j = 0; j < rows; j++)
array[j] = new Variables[cols];
In one of my other classes one of my methods is querying the array to get a bool value from it using:
// accessing the constructor of the array class
for (int i=0; i < nRows; i++)
for (int j=0; j < nCols; j++)
bool cell = arrayCells.checkCellStatus(i,j);
However it always returns a false bool value for the whole array even though I know they aren't all false.
I think I might need to pass the array to the class thats trying to access it through a constructor but when i tried that the compiler says that it cant find matching function to the structure I declared in the array class
Im new to c++ programming and seem to have lost my way any help that some one can give to show me the way back would be much appreciated.