/******************************************************************** * KYU BAE * PROJECT #2 < Cdinventory.h > * * ********************************************************************/ #ifndef CDINVENTORY_H #define CDINVENTORY_H #include /******************************************************************** * class cdinventory * declaration of all data members and member funcions * ********************************************************************/ class Cdinventory { private: char category; int codenum; int copynum; char artist[41]; char title [41]; public: Cdinventory(); //~Cdinventory(); // int Compare_category(char) const; friend istream &operator>> (istream&, Cdinventory&); friend ostream &operator<< (ostream&, const Cdinventory&); void Setcategory (char); void Setcodenum (int); void Setcopynum (int); void Setartist (char*); void Settitle (char*); char Getcategory(); int Getcodenum (); int Getcopynum (); char* Getartist(); char* Gettitle (); }; /******************************************************************** * class Cdlist * data members and memberfunction declasration * ********************************************************************/ class Cdlist { private: int _MaxSize; int _ListSize; public: Cdlist(); Cdinventory* _ListPtr; void _FileInput (char*); void _Enter(); int _Menu () const; int _Menutwo() const; void _PrintAllRecord (Cdlist&); }; #endif /******************************************************************** * the end of class declaraion * * ********************************************************************/