apqueue - #ifndef _APQUEUE_H #define _APQUEUE_H # //...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #ifndef _APQUEUE_H #define _APQUEUE_H # // uncomment line below if bool not built-in type // #include "bool.h" / // ******************************************************************* // Last Revised: 8-14-98 // // - commented out the #include "bool.h", dhj // - updated comments for constructor/descructor, dhj // // APCS queue class // ******************************************************************* / #include "apvector.h" // used to implement queue # template <class itemType> class apqueue { public: // constructors/destructor apqueue( ); // construct empty queue apqueue( const apqueue & q ); // copy constructor ~apqueue( ); // destructor // assignment const apqueue & operator = ( const apqueue & rhs ); // accessors const itemType & front( ) const; // return front (no dequeue) bool isEmpty( ) const; // return true if empty else false int length( ) const; // return number of elements in queue // modifiers void enqueue( const itemType & item ); // insert item (at rear) void dequeue( );...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Page1 / 3

apqueue - #ifndef _APQUEUE_H #define _APQUEUE_H # //...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online