diff options
| author | Connor McDowell <[email protected]> | 2024-02-19 20:57:11 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-19 20:57:11 -0800 |
| commit | e2c04eb1111f0db1ee185bdc73cc7db51c3c9efc (patch) | |
| tree | af8798f12cede1d156542fb6d253b1aa488edc4a /Project1/program.cpp | |
| parent | i hate this. with this combined with assignment 5 ive spent almost 30 hours o... (diff) | |
| download | homework-6-connormcdowell275-e2c04eb1111f0db1ee185bdc73cc7db51c3c9efc.tar.xz homework-6-connormcdowell275-e2c04eb1111f0db1ee185bdc73cc7db51c3c9efc.zip | |
still fuckin trying
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; |