From a0a12a03f35034ba45c212a8bf24027cc4ea7b92 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sun, 18 Feb 2024 14:28:42 -0800 Subject: its fixed ???? testing --- Project1/contacts.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Project1/contacts.cpp') 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; } } -- cgit v1.2.3