#ifndef CONTROLLER_H #define CONTROLLER_H #include #include #include #include "Students.h" #include "MultItem.h" using namespace std; class Controller{ private: Students Sarray[100]; // an array of students MultItem Marray[100]; // an array of media items int Snum; // the number of students in the array int Mnum; // the number of media in the array ofstream output; // output variable public: Controller(); // constructor // mutators void readSdata(); // reads in all the student data void readMdata(); // reads in all the media data void printStudents(); // prints out all the students in the array void printItems(); // prints all the items in the array void printInfo(string); // prints out the students info and the media they own void addMItem(MultItem); // adds a media item to an owner void addStudent(Students); // adds a student to the array void deleteAll(string); // deletes a student and all their media void quit(); // closes outfile, quits ~Controller(); // DESTRUCTOR }; #endif