aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-29 16:02:20 -0800
committerConnor McDowell <[email protected]>2024-02-29 16:02:20 -0800
commit903d582231befeccae18be5af3b23ee92235d343 (patch)
tree33a5b78025e856d18480df35a90cae6ce4cac88e /Project1/program.cpp
parentlist of contacts created (diff)
downloadhomework-7-connormcdowell275-903d582231befeccae18be5af3b23ee92235d343.tar.xz
homework-7-connormcdowell275-903d582231befeccae18be5af3b23ee92235d343.zip
refactoring add new.
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
index d8bcec1..129284f 100644
--- a/Project1/program.cpp
+++ b/Project1/program.cpp
@@ -17,15 +17,11 @@ int main()
size_t MAX = 3;
int O = 1;
/* t = index counter*/
- contact newContact;
+ contact* newContact = new contact[MAX];
contact_list contact_list;
- size_t length = contact_list.get_length();
- contact contactArray[length] = { newContact };
+
size_t t = 0;
- //contact* newContact = new contact[MAX];
- //int length = sizeof(newContact[MAX]);
int size = sizeof(newContact);
- //cout << sizeof(newContact[MAX]) << endl;
while (O == 1)
{
//cout << MAX << endl;