Lab 4: Queue Additions
Due February 26
This lab will be due later than usual, partly because of the President's Day holiday, and partly because I expect most people will be finishing project 1 instead of starting lab 4 this Monday. This lab does require a little more code than usual.
Starting with the compact queue demo from class (compact_queue.h), add the following features:
- C++11-style for loop support. These are the loops that look like "for(auto i : mycollection)". Refer to the linked list demo for an example of how to do this.
- Overload the insertion operator so the queue can be directly printed. It should print out each item in the queue, in order.
You can start with the queue as it is while I'm writing this (Feb 10). But if you don't start this first, I will add a couple details to the queue on Tuesday. Please don't delay starting this assignment to wait for me to add onto the queue, since it's more than complete enough as-is.