Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "queue.h"
const char* Queue::Full::what() const throw()
{
return "Queue is full";
}
const char* Queue::Empty::what() const throw()
{
return "Queue is empty";
}
Queue::Queue( const int _maxSize ) : maxSize(_maxSize)
{
/* this is going to dynamically allocate an array of chars
I'm doing it with a smart pointer to be absolutely certain
there's no memory leak */
queue = std::make_unique<char[]>( maxSize );
numValues = 0;
}
Queue::~Queue()
{
}
int Queue::num_items() const
{
}
void Queue::push( char value )
{
}
char Queue::front() const
{
}
char Queue::back() const
{
}
char Queue::pop()
{
}