So you need to create a queue for your time class? Do you have anything yet?
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
queue shouldn't inherit from time, it should be separate.
class Queue_time
{
public:
Queue_time();
Queue_time(Time);
// ...
}
The overloaded << operator will use a loop to go through each element in the queue and print it out. the >> operator will take in the values to create a Time object and then add that time object to the end of the queue.
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189