Question: 1 down votefav I'm trying to implement a Deque using a doubly linked list. I included the header file that I made but I keep

1down votefav

I'm trying to implement a Deque using a doubly linked list. I included the header file that I made but I keep getting errors "identifier "DequeEmpty" is undefined" "identifier "DLinkedList" is undefined"

I don't understand what's the problem.

This is my code

 #ifndef NOTATIONCONVERTER_H #define NOTATIONCONVERTER_H #include  #include "NotationConverterInterface.hpp" typedef std::string Elem; // deque element type class LinkedDeque { // deque as doubly linked list public: LinkedDeque(); // constructor int size() const; // number of items in the deque bool empty() const; // is the deque empty? const Elem& front() const throw(DequeEmpty); // first element const Elem& back() const throw(DequeEmpty); // last element void insertFront(const Elem& e); // insert new first element void insertBack(const Elem& e); // insert new last element void removeFront() throw(DequeEmpty); // remove first element void removeBack() throw(DequeEmpty); // remove last element private: DLinkedList D; // doubly linked list of elements int n; // number of elements };

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!