#ifndef MLIST_H_ #define MLIST_H_ #include using namespace std; #include #include #include #include "student.h" #include "media.h" class mlist { private: student sList[100]; //List of students media medList[100]; //List of media void init(ifstream &stfile,ifstream &itfile); //Initialization function public: mlist(ifstream &stfile,ifstream &itfile); //Constructor, init files given mlist(); //Default constructor //Print list of all items. ui iPrint(ofstream &ofile); //print student w/ given email, info, then all items owned by said student. ui ePrint(string targE,ofstream &ofile); //print list of all students ui sPrint(ofstream &ofile); //Add an item to item list ui additem(string iTitle,string iType,string iAuth,string iOwn,ui iPrice,string iAvail); //Add a student to student list ui addstudent(string sName,string sNum,string sEmail,string sA1,string sA2,string sCity,string sState,string sZip,string sOther); //Remove student w/ given email ui eDel(string email); //Reads in values for lines in files (student/item names, other fields) void commcatch(ifstream &file,string &line); }; #endif