I have a class object called Cube:
class Cube{
public:
Cube();
};
Cube::Cube(){}
I create a 3D grid of the Cube objects as such:
vector<vector<vector<Cube>>> grid;
Now I want to populate it with a certain amount of Cube objects. Essentially I want to do the same thing as if I was creating a 3D array:
Cube grid[10][10][10]
Is this possible in C++?