Hello,
Wondering if you can help me.. I have a variable, that each time needs to multiply by 2 (I know, it sounds simple.. I'm probably being an idiot) but it works like this:
LOOP 1
offsetX = 0;
offsetY = 0;
LOOP 2
offsetX = 2;
offsetY = 0
LOOP 3
offsetX = 4;
offsetY = 0;
Here is the code:
[code]
int offsetX = 0;
int offsetY = 0;
for(int i=0; (i < (4*4)); i++)
{
for(int i=0; (i < subRow); i++)
{
for(int j=0; (j < subCol); j++)
{
int var1 = offsetX + j;
int var2 = offsetY + i;
row = offsetX*2;
col= offsetY*2;
cout << row << col << endl;
}
}
[/code]
Any ideas? Thanks :)