Indent code and insert comments to document your program.
Program must be implemented and run.
Write the definition of the function copyList, the copy constructor, and the function to overload the assignment operator for the class doublyLinkdList.
Rewrite Lab 10 using the doublyLinkedList instead of an array (Note: You don’t have to limit the size to 100).
#ifndef H_doublyLinkedList
#define H_doublyLinkedList
#include <iostream>
#include <cassert>
………
//ENTER CODE HERE (20%)
}
template <class Type>
doublyLinkedList<Type>::~doublyLinkedList()
{
cout << "Definition of the destructor is left as an exercise." << endl;
cout << "See Programming Execrise 9." << endl;
}