Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm> //fill, copy
- #include "Node.h"
- using namespace std;
- DataType Node:: getData() const
- {
- return data;
- }
- void Node::setData(const DataType& _data)
- {
- data = _data;
- }
- Node* Node::detpNext()
- {
- return pNext;
- }
- const Node* Node::detpNext() const
- {
- return pNext;
- }
- void Node:: setpNext(Node* _pNext)
- {
- pNext = _pNext;
- }
Add Comment
Please, Sign In to add comment