Hello
I want to implement a pr. queue with structs.
My struct is:
struct Call
{
int CallNum;
long CallTime;
int CallLength;
};
This is a call center simulation application (of course if i can).
According to algorithm, the agents should choose the call whose CallLength is shorter.
I push my data into the queue like this:
Call client[i];
client[i].CallNum = a;
client[i].CallLength = b;
client[i].CallTime = c;
mypq.push(client[i]);
Can anyone help me please? This is my last day to due. Thanks a lot