Need Help C Problem Thanks Include Include Ifndef Doublylinkedlisth Define Doublylinkedlis Q37237064

Need Help with C++ Problem. Thanks!

#include <iostream>
#include <stdexcept>

#ifndef DOUBLYLINKEDLIST_H
#define DOUBLYLINKEDLIST_H

#include “ListNode.h”
#include “LinkedListIterator.h”

using namespace std;

template <class T>
class DoublyLinkedList
{
protected:
    ListNode<T>* head;
    ListNode<T>* tail;
    int length;

public:

    ///————-New IteratorStuff———————–

    /**
     * @brief Get iterator pointing to firstthing in list (item after dummy head node)
     */
    LinkedListIterator<T> begin();

    /**
     * @brief Get iterator pointing to locationafter last thing in list (always the dummy)
     */
    LinkedListIterator<T> end();

    /**
     * @brief Find desired value in the list,return an iterator to that value
    *          or to end()if value not found
     */
    LinkedListIterator<T> findValue(constT& value);

    /**
     * @brief Insert given value
     */
    void insert(LinkedListIterator<T>location, const T& value);

    /**
     * @brief

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.