#include "student.h" #include "multimedia.h" #ifndef FSTREAM_H #define FSTREAM_H #include using std::ofstream; using std::ifstream; #endif class database { public: database(); bool additem( int index, multimedia& item ); //adds an item to the items array at index bool addstudent( int index, student& newstudent);//adds an student to the students array at index void printstudents( ofstream& out ) const; //prints a list of students to the output file void printitems( ofstream& out ) const; //prints a list of items to the output file bool printemail( string email, ofstream& out ) const; //prints a student and all its corresponding items to the output file bool deletestudent( string email ); //deletes a student with email and all its items int findstudent( string email ) const; //finds a student with email and returns its index int findblankstudent( ) const; //finds the first blank location and returns its index int findblankitem( ) const; //finds the first blank location and returns its index private: student students[100]; multimedia items[100]; };