/* 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 CONTROL_H // #define CONTROL_H // Only defines the class if it hasn't been defined already #include #include #include #include #include using namespace std; #include "Student.h" // Include Student Class #include "Item.h" // Include Item Class class Control { public: Control(); // Constructor, will initially open the two input files void PrintStudents(string, ostream &) const; // Prints all students to output file or just one according to e-mail address void PrintItems(string, ostream &) const; // Prints all items to output file or just ones according to e-mail address void AddItem(istream &, ostream &); // Add item to array of items to first open spot void AddStudent(istream &, ostream &); // Add student to array of students to first open spot void DeleteAllE_Mail(string, ostream &); // Delete all items and student with certain e-mail private: Student Students[100]; // Stores all Student data Item Items[100]; // Stores all Item data }; #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. */