Timtsa

Node.cpp

Dec 7th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm> //fill, copy
  3. #include "Node.h"
  4. using namespace std;
  5.  
  6. DataType Node:: getData() const
  7. {
  8.  
  9.     return data;
  10. }
  11. void Node::setData(const DataType& _data)
  12. {
  13.     data = _data;
  14. }
  15. Node* Node::detpNext()
  16. {
  17.     return pNext;
  18. }
  19. const Node* Node::detpNext() const
  20. {
  21.     return pNext;
  22. }
  23. void Node:: setpNext(Node* _pNext)
  24. {
  25.     pNext = _pNext;
  26. }
Add Comment
Please, Sign In to add comment