First this is a homework assignment, so I don't want the answer just a point in the right direction.
The problem is a bank simulation. I have 3 classes: Tellers, Customers, and InLine. The line is the queue.
The customers class has an array of objects defined in main like this:
Customers customer[300];
My question is this, is it possible to insert an object customer into the queue? I have tried many ways but nothing seems to work.
example
line.enqueue(x); //i would like for x to be a customer object.
Does this make sense to anyone, if so please point me in the right direction.
Thank you,
Diana



LinkBack URL
About LinkBacks


