aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-18 16:08:27 -0800
committerConnor McDowell <[email protected]>2024-02-18 16:08:27 -0800
commit7addf3cf043f1fc00fd8a641ccf65aa13b2fef47 (patch)
tree225a16ff4f875ea4ae796e44a093dd895b39b11e /Project1/program.cpp
parentits fixed ???? testing (diff)
downloadhomework-5-connormcdowell275-7addf3cf043f1fc00fd8a641ccf65aa13b2fef47.tar.xz
homework-5-connormcdowell275-7addf3cf043f1fc00fd8a641ccf65aa13b2fef47.zip
got moving through the list working, but now print is broken;
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp5
1 files changed, 4 insertions, 1 deletions
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)
{