Question: / / QueueArray.h #ifndef QUEUEARRAY _ H #define QUEUEARRAY _ H #include #include using namespace std; #include Queue.h template class QueueArray : public Queue
QueueArray.h
#ifndef QUEUEARRAYH
#define QUEUEARRAYH
#include
#include
using namespace std;
#include "Queue.h
template
class QueueArray : public Queue
public:
QueueArrayint maxNumber Queue::MAXQUEUESIZE;
QueueArrayconst QueueArray& other;
QueueArray& operatorconst QueueArray& other;
~QueueArray;
void enqueueconst DataType& newDataItem throw logicerror;
DataType dequeue throw logicerror;
void clear;
bool isEmpty const;
bool isFull const;
void putFrontconst DataType& newDataItem throw logicerror;
DataType getRear throw logicerror;
int getLength const;
void showStructure const;
private:
int maxSize;
int front;
int back;
DataType dataItems;
;
#endif
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
