www.pudn.com > mir112347628.rar > DLinkedList.cpp


/******************************************************************************************************************

DLinkedList.h: interface for the CDLList class.

*******************************************************************************************************************/

#include "stdafx.h"


template <class T>
CDLList<T>::CDLList(CDLList<T>&amt; DLList)
{
for ( INT nLoops = 0; nLoops<DLList.ListLength(); nLoops++ )
{
T* tempT = new T;
tempt->Data = DDList.Current();
AddNode(tempT);
}
}