aboutsummaryrefslogtreecommitdiff
path: root/Project1/contacts.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-18 14:28:42 -0800
committerConnor McDowell <[email protected]>2024-02-18 14:28:42 -0800
commita0a12a03f35034ba45c212a8bf24027cc4ea7b92 (patch)
tree1ef444a125d59426f5857301fb69281a8d48889c /Project1/contacts.cpp
parentafter all the testing ive more or less reverted back to what ive done. i have... (diff)
downloadarchived-homework-5-connormcdowell275-a0a12a03f35034ba45c212a8bf24027cc4ea7b92.tar.xz
archived-homework-5-connormcdowell275-a0a12a03f35034ba45c212a8bf24027cc4ea7b92.zip
its fixed ???? testing
Diffstat (limited to 'Project1/contacts.cpp')
-rw-r--r--Project1/contacts.cpp16
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;
}
}