Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Building a Queue

  Asked By: Gerti    Date: Apr 29    Category: C++ Programming    Views: 711
  

This project extends the Queue class implemented in the queue session lab time, using the additional algorithms from class. Your assignment is to add the following methods to the statically allocated Queue class as described below:

Implement the Queue class' destructor (C++ only).
Implement the following public methods:
DATA dequeue ();
Removes first value from the queue and returns it.
DATA front ();
Returns the first value from the queue, but does not remove it.
DATA rear ();
Returns the last value from the queue, but does not remove it.
Implement the following public "helper" methods:
int getSize()
Returns the number of elements in the queue.
bool isEmpty()
Returns true if the queue is empty. Otherwise it returns false
bool isFull()
Returns true if the queue is full. Returns false to otherwise.

Share: 

 

1 Answer Found

 
Didn't find what you were looking for? Find more on Building a Queue Or get search suggestion and latest updates.




Tagged: