DLinkedList.cpp
Upload User: cydong117
Upload Date: 2009-11-10
Package Size: 638k
Code Size: 1k
Development Platform:

Visual C++

  1. /******************************************************************************************************************
  2. DLinkedList.h: interface for the CDLList class.
  3. *******************************************************************************************************************/
  4. #include "stdafx.h"
  5. template <class T>
  6. CDLList<T>::CDLList(CDLList<T>& DLList)
  7. {
  8. for ( INT nLoops = 0; nLoops<DLList.ListLength(); nLoops++ )
  9. {
  10. T* tempT = new T;
  11. tempt->Data = DDList.Current();
  12. AddNode(tempT);
  13. }
  14. }