aboutsummaryrefslogtreecommitdiff
path: root/Project1
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-03-04 19:03:29 -0800
committerConnor McDowell <[email protected]>2024-03-04 19:03:29 -0800
commit45783f31beb5fb610e14ebb02ac34fa5434fac28 (patch)
tree1d8412a1bf283383ceb609537cc31e0a417c2910 /Project1
parenttesting still (diff)
downloadhomework-7-connormcdowell275-45783f31beb5fb610e14ebb02ac34fa5434fac28.tar.xz
homework-7-connormcdowell275-45783f31beb5fb610e14ebb02ac34fa5434fac28.zip
I GOT SOMETHING TO PRINT
not the right thing but
Diffstat (limited to 'Project1')
-rw-r--r--Project1/contacts.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp
index 8db0c50..0d8723c 100644
--- a/Project1/contacts.cpp
+++ b/Project1/contacts.cpp
@@ -143,7 +143,6 @@ void contact::print()
cout << "State: " << _state << endl;
cout << "Zip code: " << _zip << endl;
cout << "Email: " << _email << endl;
-
}
//functions
@@ -346,15 +345,15 @@ void contact_list::Print() const
for (auto i = 0u; i < size_; ++i)
{
- size_t check = 1;
+ size_t check = contacts_[i].Get_a();
if (contacts_[i].Get_id() == check)
{
i = i + 1;
}
- if (contacts_[i].Get_id() == 0) {
+ /* if (contacts_[i].Get_id() == 0) {
break;
- }
+ }*/
if (contacts_[i].Get_id() < 0) {
break;
}