From f03cc9b2c36a355f07708c9098c60e3eb586abf5 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Tue, 5 Mar 2024 18:01:06 -0800 Subject: 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. --- Project1/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project1/program.cpp') 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) //{ -- cgit v1.2.3