aboutsummaryrefslogtreecommitdiff
path: root/Project1/contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/contacts.cpp')
-rw-r--r--Project1/contacts.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp
index caca7df..2b52062 100644
--- a/Project1/contacts.cpp
+++ b/Project1/contacts.cpp
@@ -1,4 +1,4 @@
-#include "Contacts.h"
+#include "Contact_list.h"
#include <iostream>
#include <list>
#include <vector>
@@ -9,6 +9,11 @@ using std::endl;
//getters n setters
+contact_list::~contact_list()
+{
+
+}
+
void contact::Set_firstName(const char* firstName)
{
_firstName = firstName;
@@ -118,7 +123,7 @@ size_t contact::Get_id()
}
//functions
-void contact_list::AddContact(contact* newContact, size_t MAX, size_t& t)
+void contact_list::AddContact(const contact& newContact, size_t MAX, size_t& t)
{
//using couts to prompt using for all parts of newContact struct.
//update plans: check for newContact[i].bool value, if false, use a modified void update
@@ -235,7 +240,7 @@ void contact_list::AddContact(contact* newContact, size_t MAX, size_t& t)
//
//}
-void contact_list::update(contact newContact, size_t MAX)
+void contact_list::Update(contact newContact, size_t MAX)
{
//uses input based on list number from print (though when delete is made will be using that id/name print) to update the values of.
//CURRENTLY TESTING
@@ -454,3 +459,7 @@ void contact_list::DeleteContact(contact newContact[], size_t MAX)
// }
}
+void contact_list::CopyList(const contact* contacts, const size_t& size)
+{
+
+} \ No newline at end of file