// Project 2 for CS 1704 Spring 2004 // // Programmer: Phil Wallace // OS: Windows XP Professional // System: Pentium 4 2200, 768 MB Memory // Compiler: Visual C++ .NET // Last modified: February 22, 2004 // // Purpose: // The purpose of this class is to store data on a type of media // the user inputs /* On my honor: - I have not discussed the C++ language code in my program with anyone other than my instructor or the teaching assistants assigned to this course. - I have not used C++ language code obtained from another student, or any other unauthorized source, either modified or unmodified. - If any C++ language code or documentation used in my program was obtained from another source, such as a textbook or course notes, that has been clearly noted with a proper citation in the comments of my program. - I have not designed this program in such a way as to defeat or interfere with the normal operation of the Curator System. Phil Wallace*/ #include "item.h" //default constructor item::item() { name = ""; //name of item media = ""; //media type author = ""; //author of media owner = ""; //owner of media price = ""; //price of media available = ""; //availability of media } //cleans up a slot void item::icleanup() { name = ""; //name of item media = ""; //media type author = ""; //author of media owner = ""; //owner of media price = ""; //price of media available = ""; //availability of media } bool item::operator ==(item &rhs) { if((name == rhs.name) && (media == rhs.media) && (author == rhs.author) && (owner == rhs.owner) && (price == rhs.price) && (available == rhs.available)) return true; return false; }