[Cs3] Lab 10 Question

Mikhail Nesterenko mikhail at cs.kent.edu
Fri Apr 8 14:33:45 EDT 2022


> I am confused on lab 10 (Part 3) on how we are supposed to iterate through
> the queue and do an action, because queues don't have indexing operators or
> iterators. Can you please help me with this?
>

You are supposed to broadcast to all the customers int he queue. This
means that you can just iterate and notify all the customers that
(some) drink is ready. Then each customer has to figure out if it was
her drink.

Thanks,
--
Mikhail


More information about the cs3 mailing list