views:

365

answers:

2
+1  A: 

2D arrays are not accessed as Array[alpha,beta] in C++.

It is done as Array[alpha][beta].

abelenky
A: 

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.

AndrewR