// file: Example.h // // system include files // #include #include #include #include // protect the namespace // using namespace std; // Class: Node // class Node { // protected data // protected: char* data_d; Node* next_d; // public methods // public: // method: default constructor and destructor // Node(); ~Node(); // set and get methods // void set_data(char* data_a); void set_next(Node* next_a); char* get_data(); Node* get_next(); // end of class // }; // Class: List // class List { // protected data // protected: // declare space for a node // Node* head_d; // public methods // public: // method: default constructor and desctructor // List(); ~List(); // debug methods // void debug(FILE* fp_a); // node-related methods // void append(char* data_a); Node* get_head(); // end of class // };