aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
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/program.cpp
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/program.cpp')
-rw-r--r--Project1/program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
index cc67419..ab71dce 100644
--- a/Project1/program.cpp
+++ b/Project1/program.cpp
@@ -41,7 +41,7 @@ int main()
{
case 1:
//addNew(newContact, MAX, t);
- contacts.AddContact(newContact);
+ contacts.AddContact(newContact, t);
//addContact(newContact, contacts.get_size(), contacts[MAX]);
//for (auto i = 0u; i < MAX; ++i)
//{