DoublyNode.h 402 B

1234567891011121314151617181920212223
  1. // Project: Doubly_Linked_List.cbp
  2. // File : DoublyNode.h
  3. #ifndef DOUBLYNODE_H
  4. #define DOUBLYNODE_H
  5. #include <iostream>
  6. template <typename T>
  7. class DoublyNode
  8. {
  9. public:
  10. T Value;
  11. DoublyNode<T> * Previous;
  12. DoublyNode<T> * Next;
  13. DoublyNode(T value);
  14. };
  15. template <typename T>
  16. DoublyNode<T>::DoublyNode(T value)
  17. : Value(value), Previous(NULL), Next(NULL) {}
  18. #endif // DOUBLYNODE_H