frasifrasi
December 8th, 2007, 02:41 PM
I am trying to come up with a loop to overlap a 4X4 "box" array onto a a jar of larger size starting at row = 0 and col = 3 on the jar. Here is my last attempt, but I can't get it (firstcol=3/firstrow=0):
for(int m=0;m<4;m++)
{
for(int n=0;n<4;n++)
for(int x=firstRow;x<firstRow+4;x++)
//for(int y=firstCol;y<firstCol+4;y++)
{
jar[x][m] = box[n][m];
}
}
can anyone suggest a solution?--that would be MUCH appreciated.
for(int m=0;m<4;m++)
{
for(int n=0;n<4;n++)
for(int x=firstRow;x<firstRow+4;x++)
//for(int y=firstCol;y<firstCol+4;y++)
{
jar[x][m] = box[n][m];
}
}
can anyone suggest a solution?--that would be MUCH appreciated.