From 7addf3cf043f1fc00fd8a641ccf65aa13b2fef47 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Sun, 18 Feb 2024 16:08:27 -0800 Subject: got moving through the list working, but now print is broken; --- Project1/program.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Project1/program.cpp') diff --git a/Project1/program.cpp b/Project1/program.cpp index 1d21308..4336284 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -27,6 +27,7 @@ int main() { constexpr size_t MAX = 10; int O = 1; + int t = 0; contact newContact[MAX]; while (O == 1) { @@ -40,7 +41,9 @@ int main() //c = menu(); if (c == 1) { - addNew(&newContact[MAX], MAX); + addNew(&newContact[MAX], MAX, t); + ++t; + cout << t << endl; } if (c == 2) { -- cgit v1.2.3