//node.cc, node class implementation file
#include <iostream.h>
#include "Node.h"
Node::Node(): data(0), next(NULL) {}
void Node::setdata(int integer)
{
data = integer;
}
void Node::setnext(Node* ptrtonext)
{
next = ptrtonext;
}
Node* Node::shownext()
{
return next;
}
int Node::showdata()
{
return data;
}