aboutsummaryrefslogtreecommitdiff
path: root/Project1/contacts.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-21 14:02:30 -0800
committerConnor McDowell <[email protected]>2024-02-21 14:02:30 -0800
commit227d0ef1a88219d54f2154c5fa95cae51ba932a6 (patch)
tree6b55889bd43fbd863bbdcad481a41e58397e1f95 /Project1/contacts.cpp
parentadded more comments and plans to do (diff)
downloadarchived-homework-6-connormcdowell275-227d0ef1a88219d54f2154c5fa95cae51ba932a6.tar.xz
archived-homework-6-connormcdowell275-227d0ef1a88219d54f2154c5fa95cae51ba932a6.zip
share push
Diffstat (limited to 'Project1/contacts.cpp')
-rw-r--r--Project1/contacts.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Project1/contacts.cpp b/Project1/contacts.cpp
index 79f048c..828bef5 100644
--- a/Project1/contacts.cpp
+++ b/Project1/contacts.cpp
@@ -7,8 +7,6 @@ using std::cin;
using std::cout;
using std::endl;
-
-
char addNew(contact newContact[], size_t MAX, size_t t)
{
//using couts to prompt using for all parts of newContact struct.
@@ -114,7 +112,7 @@ void printAll(contact newContact[], size_t MAX)
void contact_double(contact*& newContact, size_t& MAX, size_t t)
{
- //supposedly doubles length. doesnt work.
+ //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.
contact* doubleContact = new contact[MAX * 2];