#include "Node.h"; #include ; //using namespace std; // create a node with value newValue and next field nextElt Node::Node(string newValue, Node * nextElt): value(newValue),next(nextElt){} Node::Node(const Node & other): value(other.value),next(other.next) {} // destroy Node Node::~Node() {} // make newValue the new value void Node::setValue(string newValue){ value = newValue; } // return value string Node::getValue() const { return value; } // pop elt from the stack Node * Node::getNext() const { return next; } // return top element from the stack void Node::setNext(Node *newNext) { next = newNext; }