Exemplo n.º 1
0
int _tmain(int argc, _TCHAR* argv[])
{
	srand( (unsigned int)time( NULL ) );
	test_heapify();
	testIter( 10000 );
	return 0;
}
Exemplo n.º 2
0
int main(void) {
  int i;
  for (i = 1; i <= ITERATIONS; i++) {
    fprintf(stderr, "\rtesting ... %d%%", 100*i/ITERATIONS);
    generate_test_heap();
    test_heapify();
  }
  fprintf(stderr, "\n");

  return 0;
}