aboutsummaryrefslogtreecommitdiff
path: root/My structures/Contact.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'My structures/Contact.hpp')
-rw-r--r--My structures/Contact.hpp29
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;
}
}