diff options
Diffstat (limited to 'Homework8/MyStructures/Contact.hpp')
| -rw-r--r-- | Homework8/MyStructures/Contact.hpp | 16 |
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; |