예제 #1
0
/* This function displays the elements and location that are greater than its neighbors*/ 
void displayArray(int numbers[size][size])
{
     int m,n;
     bool flag;
     
     for (m=1;m<=size-2;m++)
     {
         for (n=1;n<=size-2;n++)
         {
              flag=checkGreater(m,n,numbers);
              if (flag)
                   printf("%d at location (%d,%d)\n", numbers[m][n], m-1, n-1);
         }
     }
}
예제 #2
0
void checkComparisons(T low, T mid, T high) {
  checkEquals(mid, mid);
  checkGreater(mid, low);
  checkLower(mid, high);
}