// Node.cpp: implementation of the Node class. // ////////////////////////////////////////////////////////////////////// #include "Node.h" #include #include #include ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// Node::Node() { color=0; shape=1; tag=0; value=13; strcpy(title,"King Diamond"); next=NULL; } Node::Node(int color1, int shape1, int tag1, int value1, char title1[15]) { color=color1; shape=shape1; tag=tag1; value=value1; strcpy(title,title1); next=NULL; } Node::operator=(Node node1) { color=node1.color; tag=node1.tag; shape=node1.shape; value=node1.value; next=NULL; strcpy(title,node1.title); } Node::~Node() { } Node::show() { // Show the Node int i; cout << "side: " << tag << endl; cout << "value: " << value << endl; cout << "color: " << color << endl; cout << "title: "; for(i=0; i