diff options
| author | Connor McDowell <[email protected]> | 2024-03-09 17:40:06 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-09 17:40:06 -0800 |
| commit | 01dc1dbc161fadbe169908c0200d3d2a39490a72 (patch) | |
| tree | 22c4b54562207aaa0626dce79f820ed6a2600507 /My structures/Contact.hpp | |
| parent | test classes created (diff) | |
| download | homework-8-connormcdowell275-main.tar.xz homework-8-connormcdowell275-main.zip | |
Diffstat (limited to 'My structures/Contact.hpp')
| -rw-r--r-- | My structures/Contact.hpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/My structures/Contact.hpp b/My structures/Contact.hpp index 15c8317..7a230d7 100644 --- a/My structures/Contact.hpp +++ b/My structures/Contact.hpp @@ -2,6 +2,10 @@ #define CONTACT_HPP #include <iostream> + +using std::cin; +using std::cout; +using std::endl; using namespace std; namespace myStructures @@ -12,6 +16,7 @@ namespace myStructures public: // constructors and destructors. contact() = default; + contact(size_t a, string firstName, string lastName, string streetAddress, string city, string state, int zip, string email); ~contact() = default; @@ -57,7 +62,7 @@ namespace myStructures private: size_t _a = 0; // _a functions as delete bool. if a = 1, the slot is overwritten - int _id; + /*int _id;*/ string _firstName; string _lastName; string _streetAddress; @@ -72,6 +77,13 @@ namespace myStructures // constructor defs for CLASS CONTACT template <class C> + contact<C>::contact(size_t a, string firstName, string lastName, string streetAddress, string city, string state, + int zip, string email) + { + + } + + template <class C> contact<C>::contact(const contact& copy) { *this = copy; @@ -205,26 +217,15 @@ namespace myStructures } template <class C> - size_t contact<C>::Get_id() - { - return _id; - } - template <class C> - void contact<C>::Set_id(size_t id) - { - _id = id; - } - - template <class C> void contact<C>::print() { - cout << "Contact number: " << _id << endl; + //cout << "Contact number: " << _id << endl; cout << "Full name: " << _firstName << " " << _lastName << endl; + cout << "Email: " << _email << endl; cout << "Street Address: " << _streetAddress << endl; cout << "City: " << _city << endl; cout << "State: " << _state << endl; cout << "Zip code: " << _zip << endl; - cout << "Email: " << _email << endl; } } |