// Project 2 for CS 1704 Spring II 2004 // // Programmer: Mason Shea // OS: Windows XP // System: Pentium III 500, 256 MB Memory // Compiler: Visual C++ 6.0, Service Pack 4 // Last modified: February 25, 2004 // // Purpose // The purpose of this file is to declare functions and create an interface // for an object of type student. The student has many different fields, a // default constructor, regular constructor, and copy constructor, along with // mutator operations for changing the data members and accessor operations // for returning the values of the data members without changing them. Finally, // the student class has an overloaded assignment operator = so that a student // can be assigned a student's data without having to implement the changes // in every field of a student each time this occurs, which only happens in the // organizer class. #ifndef STUDENTS_H #define STUDENTS_H #include using namespace std; using std::string; class Student { public: Student(); //default constructor Student(string, string, string, string, string, string, string, int, string); ///constrcutor with information Student(const Student&); //copy constructor //Mutator operations - assigns given data type to set values void setName(string); void setPhoneNumber(string); void setEmail(string); void setAddressLine1(string); void setAddressLine2(string); void setCity(string); void setState(string); void setZipcode(int); void setOther(string); //Accessor operations - returns a private data member string getName() const; string getPhoneNumber() const; string getEmail() const; string getAddressLine1() const; string getAddressLine2() const; string getCity() const; string getState() const; int getZipcode() const; string getOther() const; //overloaded assignment operator, allows for copying of one student's data into another's Student& Student::operator=(const Student&); private: string myName; string myPhoneNumber; string myEmail; string myAddressLine1; string myAddressLine2; string myCity; string myState; int myZipcode; string myOther; }; #endif