I have data structures project where I have to use Queues. It is a simulation of a supermarket checkout line. The queue represents the checkout line. The total number of lines is specified by the user, therefore, I declared an array of queues like:
LQueue *queueArr = new LQueue[numOfLines];
The queue is implemented with links (vice an array).
Each node of the Queue holds an object called Customer. Each customer has an attribute called "DepartureTime" which is an integer. And the customer class has a function called :
void SetDepartureTime(int time)
I don't know how to access the Customer Object's SetDepartureTime function once it is in the queue.
Thanks in advance.
Faisal
LQueue *queueArr = new LQueue[numOfLines];
The queue is implemented with links (vice an array).
Each node of the Queue holds an object called Customer. Each customer has an attribute called "DepartureTime" which is an integer. And the customer class has a function called :
void SetDepartureTime(int time)
I don't know how to access the Customer Object's SetDepartureTime function once it is in the queue.
Thanks in advance.
Faisal