// Project II for CS 1704 Spring 2004 // // Programmer: Kyle Loder // OS: Windows XP Professional // System: Pentium IV 2.6 GHz, 512 MB Memory // Compiler: Visual Studio .NET 2003 // Last modified: February 23rd, 2004 // // This class represents a student in the media library // #ifndef STUDENT #define STUDENT #include #include #include using namespace std; using std::string; using std::ofstream; class Student { public: Student (); //default constructor string getEmail (); //returns the e-mail address of a student void setName (string Name); //sets the name of a student void setNumber(string Number); //sets the phone number of a student void setEmail (string Email); //sets the e-mail address of a student void setAddress (string Address); //sets the address of a student void setApartment (string Apartment); //sets the apartment number of a student void setLine3 (string Line3); //sets the third line of the address of a student void setOther (string newOther); //sets the "other" field of a student void printStudent (ofstream &Log); //prints a student's information formatted to a file bool operator == (Student &RHS); //equal to operator bool operator != (Student &RHS); //not equal to operator private: string myName, myNumber, myEmail, myAddress, myApartment, AddressLine3, Other; }; #endif