// 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 implement the commands for the commands // that are requested in this organizer /* 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*/ #ifndef STORAGE_H #define STORAGE_H #include #include #include "item.h" #include "student.h" #include "assert.h" using namespace std; class storage{ public: storage(); //default constructor void print_students(); //prints the students in order of insertion void print_items(); //prints all intems in order of insertion void print_email(string email); //prints person's information followed by all items of theirs //adds a new item void add_item(string data, istream &File); //adds a new student void add_student(string data, istream &File); void delete_email(string email); //deletes a student record int compare(string data); //returns a converted int command based on the string void set_student(string sdata, int &index, istream& myFile); //sets data in one student object private: student sstorage[100]; //stores students item istorage[100]; //stores items }; #endif