From 0557774b1e8e0124768aa03f24bda5c76dfc8c44 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Wed, 21 Feb 2024 19:23:11 -0800 Subject: testing --- Project1/program.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Project1/program.cpp') diff --git a/Project1/program.cpp b/Project1/program.cpp index a75931b..9c134fb 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -37,7 +37,6 @@ int main() { case 1: addNew(newContact, MAX, t); - ++t; if (t >= MAX) // Check if the number of contacts exceeds MAX { contact* newContactTemp = new contact[MAX * 2]; // Double the size @@ -55,7 +54,7 @@ int main() printAll(newContact, t); // Print only the existing contacts break; case 4: - delete_contact(newContact); + delete_contact(newContact, MAX); break; case 5: O = 0; -- cgit v1.2.3