aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Project1/contact.cpp55
-rw-r--r--Project1/contact.h18
2 files changed, 64 insertions, 9 deletions
diff --git a/Project1/contact.cpp b/Project1/contact.cpp
index 7b0e570..8fbc17e 100644
--- a/Project1/contact.cpp
+++ b/Project1/contact.cpp
@@ -17,6 +17,61 @@ char* contact::Get_firstName()
return _firstName;
}
+void contact::Set_lastName(char lastName)
+{
+ *_lastName = lastName;
+}
+
+char* contact::Get_lastName()
+{
+ return _lastName;
+}
+
+void contact::Set_streetAddress(char streetAddress)
+{
+ *_streetAddress = streetAddress;
+}
+
+char* contact::Get_streetAddress()
+{
+ return _streetAddress;
+}
+
+void contact::Set_city(char city)
+{
+ *_city = city;
+}
+
+char* contact::Get_city()
+{
+ return _city;
+}
+
+int contact::Set_zip(int zip)
+{
+ _zip = zip;
+}
+
+int contact::Get_zip()
+{
+ return _zip;
+}
+
+void contact::Set_email(char email)
+{
+ *_email = email;
+}
+
+char* contact::Get_email()
+{
+ return _email;
+}
+
+
+
+
+
+
void contact::print()
{
/*cout << "name: " << _name << endl;
diff --git a/Project1/contact.h b/Project1/contact.h
index 47e8fd3..02d6b85 100644
--- a/Project1/contact.h
+++ b/Project1/contact.h
@@ -10,22 +10,22 @@ public:
void Set_firstName(char firstName);
char* Get_lastName();
- void Set_lastName();
+ void Set_lastName(char lastName);
- char* Get_streetAdress();
- void Set_streetAdress();
+ char* Get_streetAddress();
+ void Set_streetAddress(char streetAddress);
char* Get_city();
- void Set_city();
+ void Set_city(char city);
char* Get_state();
- void Set_state();
+ void Set_state(char state);
- int* Get_zip();
- int Set_zip();
+ int Get_zip();
+ int Set_zip(int zip);
char* Get_email();
- void Set_email();
+ void Set_email(char email);
void print();
@@ -35,7 +35,7 @@ private:
char* _streetAddress{};
char* _city{};
char* _state{};
- int zip;
+ int _zip;
char* _email{};
};