Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typename<template T>
- CircularDoubleDirectedList<T>::CircularDoubleDirectedList(CircularDoubleDirectedList const &other)
- {
- this->nrOfElements = other.nrOfElements;
- Node *walker = other.current;
- Node *temp = other.current;
- this->current = new Node(walker->data);
- for(int k = 1; k< this->nrOfElements;k++)
- {
- walker = walker->next;
- Node * aNode = new Node(walker->data);
- walker->prev = temp;
- temp = walker;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement