From 3b564892fd2f0b8a25e977bcabb62f7f71252a6b Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Mon, 19 Feb 2024 18:41:18 -0800 Subject: still testing the doubling. --- Project1/program.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Project1/program.cpp') diff --git a/Project1/program.cpp b/Project1/program.cpp index 74fce1e..19ef0d2 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -30,7 +30,7 @@ int main() //c = menu(); if (c == 1) { - addNew(&newContact[MAX], MAX, Cont_list_lenth); + addNew(&newContact[Cont_list_lenth], MAX, Cont_list_lenth); if (Cont_list_lenth >= MAX) { contact_double(newContact, MAX, Cont_list_lenth); @@ -39,11 +39,11 @@ int main() } if (c == 2) { - update(&newContact[MAX], MAX); + update(&newContact[Cont_list_lenth], MAX); } if (c == 3) { - printAll(&newContact[MAX], MAX); + printAll(&newContact[Cont_list_lenth], MAX); } if (c == 4) { -- cgit v1.2.3