J
JustSomeGuy
mx = Cols/2;
if ((mx * 2) != Cols) // Odd.
++mx;
}
for (y1=0; y1 < Rows; ++y1)
{
y2 = Rows-1 - y1;
for (x1=0; x1 < mx; ++x1)
{
x2 = Cols-1 - x1;
p = t[y1][x1];
t[y1][x1] = t[y2][x2];
t[y2][x2] = p;
}
}
This code doesn't seem to do the center column of
a matrix whos dimensions are odd on the x dimensions...
Can any one see why? I tried I don't see it...
if ((mx * 2) != Cols) // Odd.
++mx;
}
for (y1=0; y1 < Rows; ++y1)
{
y2 = Rows-1 - y1;
for (x1=0; x1 < mx; ++x1)
{
x2 = Cols-1 - x1;
p = t[y1][x1];
t[y1][x1] = t[y2][x2];
t[y2][x2] = p;
}
}
This code doesn't seem to do the center column of
a matrix whos dimensions are odd on the x dimensions...
Can any one see why? I tried I don't see it...