Please search this Forum for an answer. This question has been asked and answered multiple times before.
Building three-dimensional arrays for plain data types should be straightforward in C++.
For building three-dimensional arrays of Ilo objects you could make use of the IloArray<> template:
typedef IloArray<IloArray<IloArray<IloNumVar> > > IloNumVar3D;
There are more sophisticated ways to do that, you will find them if you search this Forum.
#CPLEXOptimizers#DecisionOptimization