// Node.h // node for your singly linked non-circular list #ifndef NODE_CLASS #define NODE_CLASS #include class Node{ private: std::string word; Node *next; public: // default constructor Node(); // constructor with single argument Node(std::string); // constructor with 2 arguments // primary constructor Node(std::string, Node *); // accessor for word // returns contents of word std::string getWord() const; // accessor for next // returns pointer to node to which next is pointing Node *getNext() const; // mutator for word // changes string to value passed in void setWord(std::string); // mutator for next // changes pointer to value passed in void setNext(Node *); private: // YOU MAY ADD ANY OTHER PRIVATE FUNCTIONS HERE }; #endif // NODE_CLASS