Assignment 3 Solutions
Solution to deque.h code:
/**************************************************** * File Name: deque.h * Author: Brenda Student * Course: CSCI132 * Assignment: Homework 3 * Modification Date: February 10, 2014 * Purpose: specification of Deque class *****************************************************/ #include "queue.h" class Deque: private Queue { public: Deque(); //optional Error_code serve_front(); Error_code serve_rear(); Error_code append_front(const Queue_entry &item); Error_code append_rear(const Queue_entry &item); Error_code retrieve_front(Queue_entry &item)const; Error_code retrieve_rear(Queue_entry &item)const; };
Home | | Syllabus | | Assignments | | Lecture Notes