allocate memory in complecated objects : i have two classes, the first is myarray that have 2 filelds: size and int pointer. the class Supposed to make an array of size that was sent
the second class(list_of_my_aray) have two fileds, pointer my class and size
How do I build the non-default constructor of list_of_my_aray

class MyArray
{

public:

	int size;
	int* myArray;

	MyArray();
	MyArray(int size,int* arr);
};

class list_of_myArray
{

public:

	int size;

	MyArray* list;

	GroupArray();
	GroupArray(int size,MyArray*list);
};