/* Project 2 for CS 1704, Spring 2004 Programmer: John Christopher Humphreys OS: Windows XP Professional System: Pentium M, 512 MB Compiler: Microsoft Visual Studio.net 2003 Last Modified: February 14, 2004 Purpose- This program will store student data and data of certain items in two arrays. Classes will be created to hold and manage data of each kind, and a class will manage the arrays. Data can be edited, printed, or cleared by the controlling class, and all commands, taken from an input file, will be processed and executed. Format for Comment Block provided by (http://courses.cs.vt.edu/~cs1704/spring2004/Standards/ProgramHeader.txt) */ #ifndef ITEM_H // #define ITEM_H // Only defines the class if it hasn't been defined already #include #include #include #include #include using namespace std; class Item { public: Item(); // Default Constructor string PrintTitle() const; // Return Title of Item string PrintType() const; // Return Type of Item string PrintAuthor() const; // Return Author of Item string PrintOwner() const; // Return Owner of Item double PrintPrice() const; // Return Price of Item string PrintAvailability() const; // Return Availability of Item void AddTitle(string); // Add Title of Item void AddType(string); // Add Type of Item void AddAuthor(string); // Add Author of Item void AddOwner(string); // Add Owner of Item void AddPrice(double); // Add Price of Item void AddAvailability(string); // Add Availability of Item // Design Change, delete functions were created and used rather than using the add functions void DeleteTitle(); // Delete Title of Item void DeleteType(); // Delete Type of Item void DeleteAuthor(); // Delete Author of Item void DeleteOwner(); // Delete Owner of Item void DeletePrice(); // Delete Price of Item void DeleteAvailability(); // Delete Availability of Item private: string Title; // Title of Item string Type; // Type of Item string Author; // Author of Item string Owner; // Owner of Item double Price; // Price of Item string Availability; // Availability of Item }; #endif /*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. */