| BOOL InsertPQ(hPQ, tag, key) | |||
| HPQ hPQ; | |||
| int tag; | |||
| int key; |
The InsertPQ function inserts the key and its associated tag into the priority queue.
hPQ
Identifies a priority queue.
tag
Specifies a tag associated with the key.
key
Specifies a key.
The return value is TRUE if the insertion is successful. Otherwise, it is -1.