Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void PQEnQueue( PQueue* q, int nKey, int nPrior )
- {
- if( q->SizePQueue >= q->MaxSize )
- {
- printf( "ERROR: PQEnQueue\n" );
- return;
- }
- q->pTab[q->SizePQueue].nKey = nKey;
- q->pTab[q->SizePQueue].nPrior = nPrior;
- UpdateUp( q, 0, q->SizePQueue );
- q->SizePQueue++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement