diff options
| author | Connor McDowell <[email protected]> | 2024-02-21 18:36:11 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-21 18:36:11 -0800 |
| commit | 885291c2b20a71dbb711cd5903b43564bcda0b10 (patch) | |
| tree | 5adb846b4aea771fc4b843646ffb2af7c226d69b | |
| parent | doubling working now (diff) | |
| download | homework-6-connormcdowell275-885291c2b20a71dbb711cd5903b43564bcda0b10.tar.xz homework-6-connormcdowell275-885291c2b20a71dbb711cd5903b43564bcda0b10.zip | |
start: finishing delete and assignment
| -rw-r--r-- | Project1/Contacts.h | 1 | ||||
| -rw-r--r-- | Project1/contacts.cpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Project1/Contacts.h b/Project1/Contacts.h index e46da9c..7a4f091 100644 --- a/Project1/Contacts.h +++ b/Project1/Contacts.h @@ -19,7 +19,6 @@ struct contact contact() : a(true), id(0), count(0), Zip(0) {} }; - //struct contact //{ // bool a = true; diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp index e542d64..67bed22 100644 --- a/Project1/contacts.cpp +++ b/Project1/contacts.cpp @@ -113,6 +113,7 @@ void printAll(contact newContact[], size_t& MAX) contact contact_double(contact*& newContact, size_t& MAX, size_t t) { + /*hell on earth is in this condenced comment*/ //supposedly doubles length. doesn't work. //current ideas: add if loop to whole main with the id counter t and if length of newContact = max double the length. //current problems: using const size_t max prevents editing size for the whole function, and it resets as soon as the while loop loops or leaves the scope of the if statement. |