From 9d9fd2c818f5f086dd043b89f400dd6d09428fd5 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 16 Feb 2024 13:43:17 -0500 Subject: [PATCH] adding the discussion --- hws/discussions/online_dating.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hws/discussions/online_dating.txt diff --git a/hws/discussions/online_dating.txt b/hws/discussions/online_dating.txt new file mode 100644 index 0000000..6e8f081 --- /dev/null +++ b/hws/discussions/online_dating.txt @@ -0,0 +1,11 @@ +In-class discussion + +Discuss the following questions with students around you. + +1. Shall we parse the input file using getline() or using the input stream operator? +2. How many linked lists may exist in this program? For example, one linked list to store all the users. Any other linked lists for other purposes? +3. Can you describe the structures of the main function? In other words, what should the main function do? + +4. Suppose we write a function to show all profiles matching with a user's perference, how shall we implement this function? +5. Suppose we write a function to show profiles of all users who match with this user, how shall we implement this function? +6. Suppose we write a function to show profiles of all users who liked this user, how shall we implement this function?