// Project 2 for CS 1704 Spring 2004 // // Programmer: Kristen Mitchell // OS: Windows XP Professional // System: Dell Pentium IV, 2.6 Ghz, 512 MB RAM // Compiler: Microsoft Visual C++ // Last modified: Feb. 2004 // // Purpose // This program is designed to store information about a student // [Name, Address, City, State, Zip, Email, and Other] as well as the // multimedia items that the student owns. Multimedia items // [Name, Type, Price, Location, Etc] are stored in an array. The // ManageMultimedia class interacts between the Student and Multimedia // classes. // // The program then writes to file the commands called as well as how // successful the command call was (Success/ Failure). // #include #include #include using namespace std; #ifndef _MULTIMEDIA_H #define _MULTIMEDIA_H class Multimedia { public: //Constructors Multimedia (); Multimedia (string item, string mediatype, string author, string email, string price, string loc); //Destructor ~Multimedia (); //Accessors string Item () const; string MediaType () const; string Author () const; string Owner () const; string Price () const; string ItemLoc () const; // Modifiers void ChangeItem (string newItem); void ChangeMediaType (string newMediaType); void ChangeAuthor (string newAuthor); void ChangeOwner (string newOwner); void ChangePrice (string newPrice); void ChangeLocation (string newLoc); private: string myItem; string myMediaType; string myAuthor; string myOwner; string myPrice; string myLocation; }; //Overloading operators ostream & operator << (ostream & out, const Multimedia & multi); bool operator == (const Multimedia & lhs, const Multimedia & rhs); #endif