From 45783f31beb5fb610e14ebb02ac34fa5434fac28 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Mon, 4 Mar 2024 19:03:29 -0800 Subject: I GOT SOMETHING TO PRINT not the right thing but --- Project1/contacts.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Project1') 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; } -- cgit v1.2.3