diff options
Diffstat (limited to 'Project1/contacts.cpp')
| -rw-r--r-- | Project1/contacts.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp index 29b2f47..dbb5a23 100644 --- a/Project1/contacts.cpp +++ b/Project1/contacts.cpp @@ -88,16 +88,16 @@ void update(struct contact newContact[], size_t MAX) } -void printAll(contact newContact, size_t MAX) +void printAll(contact newContact[], size_t MAX) { for (int i = 0; i < MAX; ++i) { - cout << newContact.id << endl; - cout << "name: " << newContact.Name << endl; - cout << "Email: " << newContact.Email << endl; - cout << "Address: " << newContact.StreetAddress << endl; - cout << "city" << newContact.City << endl; - cout << "state: " << newContact.State << endl; - cout << "Zip: " << newContact.Zip << endl; + cout << newContact[i].id << endl; + cout << "name: " << newContact[i].Name << endl; + cout << "Email: " << newContact[i].Email << endl; + cout << "Address: " << newContact[i].StreetAddress << endl; + cout << "city" << newContact[i].City << endl; + cout << "state: " << newContact[i].State << endl; + cout << "Zip: " << newContact[i].Zip << endl; } } |