Hi, I need help with my C++ code. Create a Priority Queue UsingHeap in C++ that simulates an airline algorithm to determine thepriority of passengers who are wait-listed for a flight. It needsto imput the user name and the time that he/she has arrived to thegate. It calculates a priority key based upon arrival time at thegate.
Code to use as reference
struct RecType
{
intpriority;
char name[20];
};
struct NodeType
{
intpriority;
char name[20];
NodeType* next;
};
class pque
{
private:
RecTypex[100];
intlastIndex;
voidmaxreheapifyUpward (RecType x [], int lastIndex);
voidmaxreheapifyDownward (RecType x [], int lastIndex);
intfindLargeChildIndex (int parentIndex, int lastIndex);
public:
pque();
voidpenque (RecType r);
RecTypepdeque ( );
boolisEmpty (
PayPal Gateway not configured
PayPal Gateway not configured