From 885291c2b20a71dbb711cd5903b43564bcda0b10 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Wed, 21 Feb 2024 18:36:11 -0800 Subject: start: finishing delete and assignment --- Project1/Contacts.h | 1 - Project1/contacts.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'Project1') 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. -- cgit v1.2.3