aboutsummaryrefslogtreecommitdiff
path: root/Project1/Contact_list.h
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-03-05 18:01:06 -0800
committerConnor McDowell <[email protected]>2024-03-05 18:01:06 -0800
commitf03cc9b2c36a355f07708c9098c60e3eb586abf5 (patch)
treef8dbd308c64ffec01275704d3c34c63265d0a0a8 /Project1/Contact_list.h
parentI GOT SOMETHING TO PRINT (diff)
downloadhomework-7-connormcdowell275-f03cc9b2c36a355f07708c9098c60e3eb586abf5.tar.xz
homework-7-connormcdowell275-f03cc9b2c36a355f07708c9098c60e3eb586abf5.zip
print still not working but list creation fixed.
previously unseen bug: not incrimenting index positions to save data, would lead to overwriting inputs. fixed by using previous version instance of variable "t" or an index counter located outside of the class.
Diffstat (limited to 'Project1/Contact_list.h')
-rw-r--r--Project1/Contact_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project1/Contact_list.h b/Project1/Contact_list.h
index 46b4b07..adfdbd6 100644
--- a/Project1/Contact_list.h
+++ b/Project1/Contact_list.h
@@ -31,7 +31,7 @@ public:
void CopyList(const contact* contacts, const size_t& size);
- void AddContact(contact& contact);
+ void AddContact(contact& contact, size_t& t);
void Print() const;