diff options
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) { |