diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 938b7ef..a8971b4 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -38,7 +38,7 @@ int main() { case 1: //addNew(newContact, MAX, t); - contact_list.AddContact(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 @@ -50,7 +50,7 @@ int main() } break; case 2: - contact_list.update(newContact, MAX); + contact_list.update(*newContact, MAX); break; case 3: contact_list.Print(newContact, MAX); // Print only the existing contacts |