// Project 2 for CS 1704 Spring 2004 // // Programmer: Kristen Mitchell // OS: Windows XP Professional // System: Dell Pentium IV, 2.6 Ghz, 512 MB RAM // Compiler: Microsoft Visual C++ // Last modified: Feb. 2004 // // Purpose // This program is designed to store information about a student // [Name, Address, City, State, Zip, Email, and Other] as well as the // multimedia items that the student owns. Multimedia items // [Name, Type, Price, Location, Etc] are stored in an array. The // ManageMultimedia class interacts between the Student and Multimedia // classes. // // The program then writes to file the commands called as well as how // successful the command call was (Success/ Failure). // #include #include #include #include "Student.h" #include "Multimedia.h" using namespace std; #ifndef _MANAGEMULTIMEDIA_H #define _MANAGEMULTIMEDIA_H class ManageMultimedia { public: //Constructor ManageMultimedia (); //Destructor ~ManageMultimedia (); //Modifiers void AddStudent (Student newStu); //add new student to stu array void AddMultimediaItem (Multimedia newItem); //add new item to multi array void Delete (string email); //deletes email items from both arrays void PrintStudents (); //prints students in order they are in array void PrintItems (); //prints the items in the order they were added void Print (string email); //prints stus data and all items they own void Quit (); //ends the program private: Student myStuArray [100]; Multimedia myMultiArray [100]; ifstream StudentFile; //ifstream for students file ifstream MultimediaFile; //ifstream for items file ofstream OutputFile; //ofstream for outpus file }; #endif