From 3bd9c7dfda13eb2d87bb8cf9647c3bbec8a61d90 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 2 Feb 2024 12:57:37 -0500 Subject: [PATCH] adding hw3 discussion questions --- hws/discussions/amazon_prime.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hws/discussions/amazon_prime.txt diff --git a/hws/discussions/amazon_prime.txt b/hws/discussions/amazon_prime.txt new file mode 100644 index 0000000..86fa74b --- /dev/null +++ b/hws/discussions/amazon_prime.txt @@ -0,0 +1,12 @@ +In-class discussion + +Discuss the following questions with students around you. + +1. Is it a good choice to use the getline() function to read the input files for this program? Why? +2. Do we need a getter/setter for each of the member variables? + +3. What should the main function do? +4. When allocating memory for the two matries, do we need to initialize each element of the matrix? + +5. What components of this program will use heap memory? +6. Where in the program shall we call delete so as to release the allocated heap memory?