aboutsummaryrefslogtreecommitdiff
path: root/Project1/contacts.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-29 17:45:43 -0800
committerConnor McDowell <[email protected]>2024-02-29 17:45:43 -0800
commitaf779b3da6389e54c3894d5de1d940e35c65c1c7 (patch)
treedfa93c61a1bb0329b06ba6ca30da76f694f2cc74 /Project1/contacts.cpp
parentsetting all functions to run in contact_list class (diff)
downloadarchived-homework-7-connormcdowell275-af779b3da6389e54c3894d5de1d940e35c65c1c7.tar.xz
archived-homework-7-connormcdowell275-af779b3da6389e54c3894d5de1d940e35c65c1c7.zip
all functions refactored to fit in contact list. testing now.
still testing. spent several hours on this total today, will continue tomorrow.
Diffstat (limited to 'Project1/contacts.cpp')
-rw-r--r--Project1/contacts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp
index e7c537f..caca7df 100644
--- a/Project1/contacts.cpp
+++ b/Project1/contacts.cpp
@@ -235,7 +235,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
@@ -281,7 +281,7 @@ void contact_list::update(contact newContact[], size_t MAX)
}
}
-void contact_list::Print(contact newContact[], size_t& MAX)
+void contact_list::Print(contact newContact[], size_t& MAX) const
{
//prints all info but count and bool for every existing (non trash value filled) contact struct
//CURRENTLY WORKING