// 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 STUDINFO_H #define STUDINFO_H #include #include using namespace std; class StudInfo { private: string Name; //holds student's name string Phone; //holds student's phone number string Email; //holds student's email address string Other; //holds information in other string Address1; //holds first line of Address string Address2; //Holds second line of address if necessary string City; //holds city string State; //holds state int Zip; //holds Zip code public: //The following are the constructors for this class StudInfo(); //default constructor //void StudInfoSet(ifstream& iFile, string category); //Constructor for given information //The following are the mutators for this class bool AddStudent(stringstream& Input); //Adds a student record to the next empty array member void RemoveStudent(); //Deletes student info //The following are the accessors for this class bool fulloremptytest(); //returns true if object is full and false if it is empty bool Emailtest(string email); //tests if the inputted email is the same as the object's email void PrintStudent(ofstream& oFile);//Prints student information }; #endif