// File: studentitem.h // // Class for student data stored in a ListNode #ifndef _studentitem_h #define _studentitem_h class ListItem { public: int ssn ; char *name ; char *major ; ListItem() ; // default constructor ListItem(const ListItem&) ; // alternate constructor // yet another constructor, default values for // name and major are NULL. // ListItem(int, const char* = NULL, const char * = NULL) ; ~ListItem() ; // destructor ListItem* copy() const ; // return pointer to clone void copyto(ListItem&) const ; // dump contents to arg void print() const ; // print to stdout // <0 is smaller, =0 is equal, >0 is bigger int compare(const ListItem&) const ; } ; #endif