/** Test the Collection class **/ #include #include #include #include "Collection.h" #include "timer.h" int KeyCmp( void *a, void *b ) { int av, bv; av = *(int *)a; bv = *(int *)b; /* printf("KC a %d b %d\n", av, bv ); */ if ( av < bv ) return -1; else if ( av > bv ) return +1; return 0; } void AddAll( Collection c, int *list, int n ) { int i; for(i=0;i