C++ programming

profiledalamri_055
ifndefNODE.docx

#ifndef NODE_H

#define NODE_H

#include <iostream>

#include <string>

class Node{

public:

Node();

Node(std::string newLname, std::string newFname, Node* newNext, Node* newPrev);

std::string getLName();

std::string getFName();

void printName(std::ostream& outstream= std::cout);

Node* getNext();

Node* getPrev();

void setNext(Node *newNext);

void setPrev(Node *newPrev);

private:

std::string lname = "";

std::string fname = "";

Node *next = nullptr;

Node *prev = nullptr;

};

#endif // NODE_H