I want to define a 2D array of structures in a class in C++, how should I do it, here is an example approach for a struct tt
class swtlvn{
private:
int a,b;
tt yum[a][b];
};
Can this be done in some way? This AoS will be used by all the member functions of the class/ultimatey defined object so it cant be defined inside a member function. Having it defined externally is going to be a hassle so no can do.
EDIT:
struct tt{
int a,b,c;
tt(){}
tt(int aa,int bb,int cc){a = aa; b = bb; c = cc;}
};