/* File: structitem.h

   Class for struct data stored in a ListNode
*/

#ifndef _structitem_h
#define _strcutitem_h


typedef struct {
   char title[81] ;
   char author[41] ;
   short kind ;
   short year ;
   float price ;
} book_t ;

typedef book_t *data ;

class ListItem {
public:
   data item ;

   ListItem() ;		/* default constructor */
   ListItem(data) ;	/* alternate constructor */ 
   ~ListItem() ;	/* destructor */
   data copy() ;	/* make a copy */
   int compare(data) ;	/* <0 is smaller, =0 is equal, >0 is bigger */
   void print() ;	/* print to stdout */
} ;

#endif
