aboutsummaryrefslogtreecommitdiff
path: root/Homework8/MyStructures/Contact.hpp
diff options
context:
space:
mode:
authorrPatrickWarner <[email protected]>2024-03-12 12:41:34 -0700
committerrPatrickWarner <[email protected]>2024-03-12 12:41:34 -0700
commitd05c67247509afd6e8672b22229a7e9ba2399f7c (patch)
tree71f929b863dff11c5407b300da96a6d66d84e29d /Homework8/MyStructures/Contact.hpp
parentall of the functions are complete (diff)
downloadhomework-8-reecepwarner-main.tar.xz
homework-8-reecepwarner-main.zip
completedHEADmain
Diffstat (limited to 'Homework8/MyStructures/Contact.hpp')
-rw-r--r--Homework8/MyStructures/Contact.hpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/Homework8/MyStructures/Contact.hpp b/Homework8/MyStructures/Contact.hpp
index fdc2921..0d99fe9 100644
--- a/Homework8/MyStructures/Contact.hpp
+++ b/Homework8/MyStructures/Contact.hpp
@@ -71,21 +71,12 @@ namespace MyStructures //variables declared here act as a global
int zip_ = { 0 };
};
-
-
inline Contact::Contact(char* name, const short age)
{
firstname_ = name;
}
- //inline Contact::~Contact()
- //{
-
-
- //}
-
-
inline Contact::Contact(const Contact& copy)
:firstname_ (copy.firstname_),
lastname_ (copy.lastname_),
@@ -107,7 +98,6 @@ namespace MyStructures //variables declared here act as a global
}
-
inline Contact& Contact::operator=(const Contact& rhs)
{
if (this != &rhs)
@@ -124,7 +114,6 @@ namespace MyStructures //variables declared here act as a global
return *this;
}
-
inline Contact::Contact(Contact&& move)
{
*this = std::move(move);
@@ -151,7 +140,6 @@ namespace MyStructures //variables declared here act as a global
return firstname_;
}
-
void Contact::SetFirstName(char* firstname)
{
firstname_ = firstname;
@@ -217,8 +205,6 @@ namespace MyStructures //variables declared here act as a global
zip_ = zip;
}
-
-
inline bool Contact::operator!=(const Contact& rhs) const
{
if (std::strcmp(firstname_, rhs.firstname_) != 0) { return true; }
@@ -244,8 +230,6 @@ namespace MyStructures //variables declared here act as a global
return true;
}
-
-
void Contact::Print() const
{
std::cout << "Name: " << firstname_ << " " << lastname_ << std::endl;