2D arrays are not accessed as Array[alpha,beta] in C++.
It is done as Array[alpha][beta].
abelenky
2009-02-08 12:42:58
2D arrays are not accessed as Array[alpha,beta] in C++.
It is done as Array[alpha][beta].
Your loop starts with
for ( int count3=( height-2 ); count3 >= 0; count3--)
{
....
}
If your input is a 1x1 array then (height-2) == -1 so the loop will never execute (since the condition (count3 >= 0) will never be true.