#define MAX_PQ_SIZE 10000 struct Node { int count; //用于优先级比较 char address[500]; //开一个字符数组 存取URL }; typedef struct Node *PNode; struct heap_struct { /* Maximum # that can fit in the heap */ unsigned int max_heap_size; /* Current # of elements in the heap */ unsigned int size; struct Node * elements; }; typedef struct heap_struct *PRIORITY_QUEUE; PRIORITY_QUEUE create_pq( unsigned int max_elements ); void inQueueMax(Node x, PRIORITY_QUEUE H ); Node delete_min( PRIORITY_QUEUE H ); int showHeap(PRIORITY_QUEUE H ); Node deQueueMax(PRIORITY_QUEUE H); int is_Empty(PRIORITY_QUEUE H);