Original Post
hi... i am trying to make a tile sliding game and i wanted to create an array of pointers to point to an array of objects... the point of this was to say the random number random thingo put the number 7 in array[2] then pntrarray[7] would point to this array and when the user says to slide that pntrarray then all i would have to do is pntrarray[x] = last;... which is really easy... i tried to do this in the following code
int array[9];
int *pntrarray = new int [9];
for (int i=0; i < 9; i++)
{
now:
num = rand() % 9;
if (!chknum())
{
//this function checks to see if there is
//no array with the same number
array = num
pntrarray[num] = & array[i]
}else{
goto now;
}
}