// Project 2 for CS 1704 Spring 2004 // // Programmer: Kristen Mitchell // OS: Windows XP Professional // System: Dell Pentium IV, 2.6 Ghz, 512 MB RAM // Compiler: Microsoft Visual C++ // Last modified: Feb. 2004 // // Purpose // This program is designed to store information about a student // [Name, Address, City, State, Zip, Email, and Other] as well as the // multimedia items that the student owns. Multimedia items // [Name, Type, Price, Location, Etc] are stored in an array. The // ManageMultimedia class interacts between the Student and Multimedia // classes. // // The program then writes to file the commands called as well as how // successful the command call was (Success/ Failure). // #include #include #include using namespace std; #ifndef _STUDENT_H #define _STUDENT_H class Student { public: //Constructors Student (); Student (string name, string phone, string email, string streetAdd, string appt, string city, string state, string zip, string other); //DESTRUCTOR ~Student (); //Accessor functions string Name () const; string Phone() const; string Email() const; string StreetAdd () const; string Appartment () const; string City () const; string State () const; string Zip () const; string OtherInfo () const; //Modifiers void ChangeName (string newName); void ChangePhone (string newPhone); void ChangeEmail (string email); void ChangeSAddress (string street); void ChangeAppartment (string appt); void ChangeCity (string cty); void ChangeState (string state); void ChangeZip (string zipCode); void ChangeInfo (string info); private: string myName; string myPhone; string myEmail; string myStreetAdd; string myAppartment; string myCity; string myState; string myZip; string myInfo; }; //Overload operators ostream & operator << (ostream & out, const Student & stu); bool operator == (const Student & lhs, const Student & rhs); #endif