I'm supposed to make a Queue Class to operate like a Queue does with enqueue, dequeue, print, etc. It is supposed to operate using a Doubly Linked List class, by calling on members of that class such as InsertLast() for enqueue which I have already written and gotten working but I'm having problems declaring my doublylinkedlist class in my queue header file under private.
It is set that "stdafx.h" has all the includes in it, including DoublyLinkedList.h.
Any help is greatly appreciated.
Error 1 error C2079: 'Queue::list' uses undefined class 'DoublyLinkedList' c:\users\jesse\desktop\queue class 2.0\queue class 2.0\queue.h 44Code:#pragma once #include "stdafx.h" class Queue { // ======= public: // =========== // Constructor // ============ Queue(void); // ============= // ========== // Destructor // ============= ~Queue(void); // ============= // ================ // Member Functions // ======================= void InitializeQueue2(); bool IsEmpty2(); bool IsFull2(); void Front2(); void Back2(); void Enqueue2( int ); void Dequeue2(int&); void PrintQueue2(); void EnqueueAndDequeue2(); // ========================== friend DoublyLinkedList; // This is here because its my failed attempt at trying to fix the error private: DoublyLinkedList list; };