Esempio n. 1
0
int main(int argc, char* argv[])
{
	ShowHeap();

    MakeBitFont(L"Small fonts",-9,FW_NORMAL,L"std");

	return 0;
}
Esempio n. 2
0
////////////////////////////// BuildHeap ////////////////////////////////////
//
/////////////////////////////////////////////////////////////////////////////
void
BuildHeap( LPSORTDATA       lpData,
           LPENTITYINSTANCE lpEI[],
           zULONG           ulRecordCnt ) // non-recursive
{
   zULONG k;

#ifdef DEBUG_ALL
   OutputDebugString( "\nShowing heap prior to build heap ...\n" );
   ShowHeap( this, m_pUseIdx->m_pxIdx );
#endif

   k = ulRecordCnt / 2;
   while( k > 0 )
   {
      zULONG ul = Heapify( lpData, lpEI, k-- );
      while ( ul )
      {
         ul = Heapify( lpData, lpEI, ul );
      }
   }
}  // end of:  BuildHeap