// file: Node.h // // This file contains the definition of a class that implements // a node in a linked list. // // system include files // #include #include #include // local include files // class definition: Node // class Node { protected: // define the data elements; key is for hashing // int data_d; int key_d; Node *next_d; public: // define the required methods // Node(); ~Node(); // define methods to get data // Node* get_next() { return next_d; } int get_data() { return data_d; } // define methods to put data // void put_next(Node* ptr_a) { next_d = ptr_a; } void put_data(int data_a) { data_d = data_a; } void put_key(int key_a){ key_d=key_a; } // end of class // };