// Project 2 for CS 1704 Spring 2004 // // Programmer: John Puckett // OS: Windows XP Professional // System: Pentium 4 2.4Ghz, 1 GB Memory // Compiler: Visual C++ 7.1, Service Pack 4 // Last modified: February 24, 2004 // // Purpose // This program reads a list of student names and items from two input files // creates 2 arrays from the data, then uses another input file to run different // algorithms on the arrays // // The program then writes the given commands and the results to // an output file #include using namespace std; #ifndef STUDENT_H #define STUDENT_H class student { public: //Constructors student(); //Destructor ~student(); //Modifier methods void updateName(string); void updatePhone(string); void updateEmail(string); void updateAdd1(string newaddress1); void updateAdd2(string newaddress2); void updateCity(string newcity); void updateState(string newstate); void updateZip(string newzipcode); void updateInfo(string newinfo); //Accessor methods string getName() const; string getPhone() const; string getEmail() const; string getAdd1() const; string getAdd2() const; string getCity() const; string getState() const; string getZip() const; string getInfo() const; bool hasAdd() const; private: string name; string phone; string email; string address1; string address2; string city; string state; string zipCode; string info; }; #endif