diff options
| author | Connor McDowell <[email protected]> | 2024-02-19 18:41:18 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-19 18:41:18 -0800 |
| commit | 3b564892fd2f0b8a25e977bcabb62f7f71252a6b (patch) | |
| tree | 58661f792d4c467bfe0c523916ab7e365375b202 /Project1/program.cpp | |
| parent | working on doubles (diff) | |
| download | homework-6-connormcdowell275-3b564892fd2f0b8a25e977bcabb62f7f71252a6b.tar.xz homework-6-connormcdowell275-3b564892fd2f0b8a25e977bcabb62f7f71252a6b.zip | |
still testing the doubling.
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |