// Project 2 for CS 1704 Spring 2004 // // Programmer: Robert Houtman // OS: Windows XP Professional // Last modified: 24 FEB 2004 // // Purpose // This program reads a list of students and multimedia collections that // each student has. // // The program then gets commands from an input file to manage the // database. // #ifndef INFO_H #define INFO_H #include "StudInfo.h" #include "ItemInfo.h" #include #include using namespace std; class Info { private: StudInfo Students[100]; //Array of 100 StudInfo classes ItemInfo Items[100]; //Array of 100 ItemInfo classes public: //The following are the constructors for this class Info(); //default constructor void FirstAddS(ofstream& oFile); //Constructor for given information //The following are the mutators for this class void AddStud(ifstream& iFile, ofstream& oFile); //Adds student with given information //if an email address is present void AddItem(ifstream& iFile, ofstream& oFile); //Adds item with given information //if an email address is present void Delete(string email, ofstream& oFile); //Deletes student info and item info for given //email address //The following is the accessor for this class void Print(ofstream& oFile, string command); }; #endif