diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 129284f..938b7ef 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -37,7 +37,8 @@ int main() switch (c) { case 1: - addNew(newContact, MAX, t); + //addNew(newContact, MAX, t); + contact_list.AddContact(newContact, MAX, t); if (t >= MAX) // Check if the number of contacts exceeds MAX { contact* newContactTemp = new contact[MAX * 2]; // Double the size @@ -49,13 +50,13 @@ int main() } break; case 2: - update(newContact, MAX); + contact_list.update(newContact, MAX); break; case 3: - printAll(newContact, MAX); // Print only the existing contacts + contact_list.Print(newContact, MAX); // Print only the existing contacts break; case 4: - delete_contact(newContact, MAX); + contact_list.DeleteContact(newContact, MAX); break; case 5: O = 0; |