make a array of pointers (Ex: int **array then allocate the pointer (Ex: array=new int* this will make a array of pointers to a array of pointers(i hope you understand its a tuff subject) you dont have to use the "7" it could be a varable taken from the user. the you need to make the arrays that the pointer arry points to like this:
this will make the 7 array point to a array of 5. I think you can make it a linked list instead of the array 5 youll have to play with that. hope this helps. Good luck.