aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-26 16:27:12 -0800
committerConnor McDowell <[email protected]>2024-02-26 16:27:12 -0800
commitc3b095676f0736a1712d8da1013a85bb3e467e58 (patch)
tree66deb37530fec574fd10d2975e909a150302c566 /Project1/program.cpp
parentadded menu driven address book from assignment 6 (diff)
downloadhomework-7-connormcdowell275-c3b095676f0736a1712d8da1013a85bb3e467e58.tar.xz
homework-7-connormcdowell275-c3b095676f0736a1712d8da1013a85bb3e467e58.zip
getters and setters created
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
index ef06d25..0ce584e 100644
--- a/Project1/program.cpp
+++ b/Project1/program.cpp
@@ -17,9 +17,11 @@ int main()
size_t MAX = 3;
int O = 1;
/* t = index counter*/
+ contact newContact;
size_t t = 0;
- contact* newContact = new contact[MAX];
- int length = sizeof(newContact[MAX]);
+ //contact* newContact = new contact[MAX];
+ //int length = sizeof(newContact[MAX]);
+ int size = sizeof(newContact);
//cout << sizeof(newContact[MAX]) << endl;
while (O == 1)
{