From b59038ac8c8bf548db5526f6723945c7e87b595e Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 2 Feb 2024 13:13:40 -0500 Subject: [PATCH] adding the poll question --- lectures/08_vector_implementation/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lectures/08_vector_implementation/README.md b/lectures/08_vector_implementation/README.md index 6ac4a19..a9ec603 100644 --- a/lectures/08_vector_implementation/README.md +++ b/lectures/08_vector_implementation/README.md @@ -215,8 +215,13 @@ The destructor is called implicitly when an automatically-allocated object goes ## 8.14 Exercises -- Finish the definition of Vec::push_back. -- Write the Vec::resize function. +Match up the line of code with the function that is called. Each letter is used exactly once. + +Foo f1; a) assignment operator +Foo\* f2; b) destructor +f2 = new Foo(f1); c) copy constructor +f1 = \*f2; d) default constructor +delete f2; e) none of the above ## 8.15 Leetcode Exercises