diff options
Diffstat (limited to 'Project1/contact.cpp')
| -rw-r--r-- | Project1/contact.cpp | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/Project1/contact.cpp b/Project1/contact.cpp new file mode 100644 index 0000000..884000d --- /dev/null +++ b/Project1/contact.cpp @@ -0,0 +1,91 @@ +#include <iostream> +#include "contact.h" + +using std::cin; +using std::cout; +using std::endl; + + + +void contact::Set_firstName(const char* firstName) +{ + _firstName = firstName; +} + +const char* contact::Get_firstName() +{ + return _firstName; +} + +void contact::Set_lastName(const char* lastName) +{ + _lastName = lastName; +} + +const char* contact::Get_lastName() +{ + return _lastName; +} + +void contact::Set_streetAddress(const char* streetAddress) +{ + _streetAddress = streetAddress; +} + +const char* contact::Get_streetAddress() +{ + return _streetAddress; +} + +void contact::Set_city(const char* city) +{ + _city = city; +} + +const char* contact::Get_city() +{ + return _city; +} + +void contact::Set_state(const char* state) +{ + _state = state; +} + +const char* contact::Get_state() +{ + return _state; +} + + +void contact::Set_zip(int zip) +{ + _zip = zip; +} + +int contact::Get_zip() +{ + return _zip; +} + +void contact::Set_email(const char* email) +{ + _email = email; +} + +const char* contact::Get_email() +{ + return _email; +} + + +void contact::print() +{ + cout << "Full name: " << _firstName << " " << _lastName << endl; + cout << "Street Address: " << _streetAddress << endl; + cout << "City: " << _city << endl; + cout << "State: " << _state << endl; + cout << "Zip code: " << _zip << endl; + cout << "Email: " << _email << endl; + +}
\ No newline at end of file |