// Node1.cpp: implementation of the Node class. // ////////////////////////////////////////////////////////////////////// #include "Node.h" #include ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// Node::Node() { } Node::~Node() { } Node::Node(int side1, int value1, int color1, Node* next1) { // Node constructor side=side1; value=value1; color=color1; next=next1; } Node::set(int side1, int value1, int color1,char title1[TITLE_DIM], Node* next1) { // set the Node with the Next field. side=side1; value=value1; color=color1; next=next1; strcpy(title,title1); } Node::set(int side1, int value1, int color1,char title1[TITLE_DIM]) { // Set the Node whenthe Next field is NULL. side=side1; value=value1; color=color1; next=NULL; strcpy(title,title1); } Node::show() { // Show the Node int i; cout << "side: " << side << endl; cout << "value: " << value << endl; cout << "color: " << color << endl; cout << "title: "; for(i=0; i