aboutsummaryrefslogtreecommitdiff
path: root/Homework6/program.cpp
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-03-01 10:09:02 -0800
committerAsahel <[email protected]>2024-03-01 10:09:02 -0800
commitb8292cf929fa9b8afc907cbcfc3e2c895d42b470 (patch)
tree51630fb6fd3ec2dbfcc0996cd218375a14234d5a /Homework6/program.cpp
parentAdded files (diff)
downloadhomework-6-asahellt-b8292cf929fa9b8afc907cbcfc3e2c895d42b470.tar.xz
homework-6-asahellt-b8292cf929fa9b8afc907cbcfc3e2c895d42b470.zip
Diffstat (limited to 'Homework6/program.cpp')
-rw-r--r--Homework6/program.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Homework6/program.cpp b/Homework6/program.cpp
index c08993f..3704aa9 100644
--- a/Homework6/program.cpp
+++ b/Homework6/program.cpp
@@ -46,5 +46,12 @@ int main()
} while (c != 'x');
+ new Contact();
+ for (size_t i = 0; i < size; ++i) {
+ newContacts[i] = contacts[i];
+ }
+
+ delete[] contacts;
+
return 0;
} \ No newline at end of file