/***************************************************************************** File: hilo.h Author: Keith Alcock Comment: Describes how to find the high and low values in a vector ****************************************************************************** Include guard *****************************************************************************/ #if !defined(HILO_INCLUDED) # define HILO_INCLUDED 1 /***************************************************************************** Revision control system *****************************************************************************/ #define PVCS_HILO_H \ "@(#)$Workfile: hilo.h$\n" \ "@(#)$Revision: 3$\n" \ "@(#) $Date: 01/31/07 18:17:10$\n" \ "@(#)---------:" /***************************************************************************** Defines *****************************************************************************/ #define TEST_HILO_OFF 0 #define TEST_HILO_ON 1 #if !defined(TEST_HILO) # define TEST_HILO TEST_HILO_ON #endif /***************************************************************************** Includes *****************************************************************************/ #include "apvector.h" // apvector #include "Range.h" // Range /***************************************************************************** hilo *****************************************************************************/ Range hilo1(apvector &vector); int mininum(int left,int right); int maximum(int l,int r); Range hilo2(apvector &vec); Range hilo3(apvector &vector); int higher(int left,int right); int highest(apvector& vector,int n); int lower(int right,int left); int lowest(apvector &a,int aa); Range hilo4(apvector &vector); Range myHilo(apvector &vector); #if (TEST_HILO==TEST_HILO_ON) void test(); int main(); #endif /***************************************************************************** Cleanup *****************************************************************************/ #endif /****************************************************************************/