I've searched and searched but haven't found anything that really clears up my confusion.
I'm representing a grid, and have two classes, e.g.:
class Term {
...
};
class GridPoint{
Term a;
Term b;
Term c;
...
};
I would like to have a large, fixed-size array on the heap, where each element of the array is a GridPoint, itself containing multiple Terms.
However, the following example will not compile:
GridPoint* pGrid = new GridPoint[100][100];
According to gcc:
error: cannot convert ‘GridPoint (*)[100]’ to ‘GridPoint*’ in initialization