aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-21 18:36:11 -0800
committerConnor McDowell <[email protected]>2024-02-21 18:36:11 -0800
commit885291c2b20a71dbb711cd5903b43564bcda0b10 (patch)
tree5adb846b4aea771fc4b843646ffb2af7c226d69b
parentdoubling working now (diff)
downloadhomework-6-connormcdowell275-885291c2b20a71dbb711cd5903b43564bcda0b10.tar.xz
homework-6-connormcdowell275-885291c2b20a71dbb711cd5903b43564bcda0b10.zip
start: finishing delete and assignment
-rw-r--r--Project1/Contacts.h1
-rw-r--r--Project1/contacts.cpp1
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.