diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 639a7ac..5dd1654 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -48,10 +48,9 @@ int main() delete[] newContact; } ++t; - if (t >= MAX - 1) + if (t >= MAX) { - *newContact = contact_double(&newContact[MAX], MAX, t); - MAX = MAX * 2; + contact_double(newContact, MAX, t); } } return 0; |