diff options
| author | Connor McDowell <[email protected]> | 2024-03-03 15:16:08 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-03 15:16:08 -0800 |
| commit | 36f63ce5a5ac9642ea0d63e44ba91c98a08e16e4 (patch) | |
| tree | 8e3969324f127e54a659586918bf5c8106f5e595 /Project1/contacts.cpp | |
| parent | all functions refactored to fit in contact list. testing now. (diff) | |
| download | archived-homework-7-connormcdowell275-36f63ce5a5ac9642ea0d63e44ba91c98a08e16e4.tar.xz archived-homework-7-connormcdowell275-36f63ce5a5ac9642ea0d63e44ba91c98a08e16e4.zip | |
first commit of the day, following lecture. again.
Diffstat (limited to 'Project1/contacts.cpp')
| -rw-r--r-- | Project1/contacts.cpp | 15 |
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 |