diff options
Diffstat (limited to 'Project1/contacts.cpp')
| -rw-r--r-- | Project1/contacts.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp index 917d085..e7c537f 100644 --- a/Project1/contacts.cpp +++ b/Project1/contacts.cpp @@ -118,7 +118,7 @@ size_t contact::Get_id() } //functions -char addNew(contact newContact[], size_t MAX, size_t& t) +void contact_list::AddContact(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 @@ -220,7 +220,7 @@ char addNew(contact newContact[], size_t MAX, size_t& t) } //cout << newContact[i]->Name << "\n" << newContact[i]->Email << "\n" << newContact[i]->StreetAddress << "\n" << newContact[i]->City << "\n" << newContact[i]->State << "\n" << newContact[i]->Zip << endl; - return 0; + } // important below. may need if current testing doesnt work. @@ -235,7 +235,7 @@ char addNew(contact newContact[], size_t MAX, size_t& t) // //} -void 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 @@ -281,7 +281,7 @@ void update(contact newContact[], size_t MAX) } } -void printAll(contact newContact[], size_t& MAX) +void contact_list::Print(contact newContact[], size_t& MAX) { //prints all info but count and bool for every existing (non trash value filled) contact struct //CURRENTLY WORKING @@ -369,7 +369,7 @@ size_t max_double(size_t MAX) return MAX; } -void delete_contact(contact newContact[], size_t MAX) +void contact_list::DeleteContact(contact newContact[], size_t MAX) { //Work in progress, add BOOL (true) to struct, when this is selected print id list with respective names //then take input of id list number and set bool to false |