// Project 2 for CS 1704 Spring 2004 // // Programmer: Phil Wallace // OS: Windows XP Professional // System: Pentium 4 2200, 768 MB Memory // Compiler: Visual C++ .NET // Last modified: February 22, 2004 // // Purpose: // The purpose of this class is to store data on a type of student // the user inputs /* On my honor: - I have not discussed the C++ language code in my program with anyone other than my instructor or the teaching assistants assigned to this course. - I have not used C++ language code obtained from another student, or any other unauthorized source, either modified or unmodified. - If any C++ language code or documentation used in my program was obtained from another source, such as a textbook or course notes, that has been clearly noted with a proper citation in the comments of my program. - I have not designed this program in such a way as to defeat or interfere with the normal operation of the Curator System. Phil Wallace*/ #ifndef STUDENT_H #define STUDENT_H #include #include using namespace std; class student{ public: student(); //default constructor //sets name field void set_name(string x){ name = x;} //sets phone field void set_phone(string x){ phone = x;} //sets email field void set_email(string x){ email = x;} //sets add1 field void set_add1(string x){ add1 = x;} //sets add2 field void set_add2(string x){ add2 = x;} //sets city field void set_city(string x){ city = x;} //sets state field void set_state(string x){ state = x;} //sets zip field void set_zip(string x){ zip = x;} //sets other field void set_other(string x){ other = x;} //returns name string get_name(){return name;} //returns phone string get_phone(){return phone;} //returns email string get_email(){return email;} //returns add1 string get_add1(){return add1;} //returns add2 string get_add2(){return add2;} //returns city string get_city(){return city;} //returns state string get_state(){return state;} //returns zip string get_zip(){return zip;} //returns other string get_other(){return other;} //cleans up a slot void scleanup(); //overloaded == bool operator==(student &rhs); private: string name; //name of student string phone; //phone number string email; //email of student string add1; //address 1 string add2; //address 2 string city; //city of student string state; //state of student string zip; //zip code of student string other; //other notes }; #endif