make a array of pointers (Ex: int **array then allocate the pointer (Ex: array=new int*[7] 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:
{
Code:
for(int i=0;i<7;i++)
array[i]=new int[5];
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.
Skeptic