// Project 2 for CS 1704 Spring 2004 // // Programmer: John Puckett // OS: Windows XP Professional // System: Pentium 4 2.4Ghz, 1 GB Memory // Compiler: Visual C++ 7.1, Service Pack 4 // Last modified: February 24, 2004 // // Purpose // This program reads a list of student names and items from two input files // creates 2 arrays from the data, then uses another input file to run different // algorithms on the arrays // // The program then writes the given commands and the results to // an output file #include #include"students.h" #include"multimedia.h" using namespace std; #ifndef MANAGER_H #define MANAGER_H class manager { public: //Constructor manager::manager(ifstream &, ifstream &); //Destructor ~manager(); //Modifier methods void addStudent(string addname, string addphone, string addemail, string addaddress1, string addaddress2, string addcity, string addstate, string addzipCode, string addinfo, ofstream &oFile); void addItem(string additem, string addtype, string addauthor, string addowner, string addprice, string addavail, ofstream &oFile); void deleteEmail(string delemail, ofstream &oFile); //Accessor methods void printStudents(ofstream &oFile) const; void printItems(ofstream &oFile) const; void printEmail(string email, ofstream &oFile) const; private: student arrayStud[100]; multimedia arrayItem[100]; }; #endif