From 3819a7ed2ffdd751bb832a1fe356b88b7c944d89 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 15 Feb 2024 02:59:08 -0500 Subject: [PATCH] adding description on delete and block --- hws/05_online_dating/README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/hws/05_online_dating/README.md b/hws/05_online_dating/README.md index 451d390..e04c9e0 100644 --- a/hws/05_online_dating/README.md +++ b/hws/05_online_dating/README.md @@ -60,13 +60,14 @@ These two images will give you a better understanding on some of the above field ## Specification -Your program will support four commands. +Your program will support six commands. 1. show profiles match with a user's preference. 2. show all matches to a user. 3. show all users who swiped right on this user - this feature is only available to premium users. 4. unmatch someone. - +5. block someone. +6. delete account. More details about each of these four commands are given below. For all four commands, *users.txt* represents the input file, and *output.txt* represents the output file, please do not hardcode the file names into your program, as the actual input/output file may have a different name. You should just use the *argv[]* array to retrieve the name of the input and the output file. Also note that all of our output files have an empty line at the very end, and the Submitty autograder sometimes will display that as two empty lines. But this empty line is not displayed if you open the file from Github in the browser, because GitHub automatically trims trailing whitespace and empty lines at the end of files when displaying them in the browser. @@ -142,7 +143,19 @@ See [user_405-855-9725_unmatch_595-383-2432.txt](user_405-855-9725_unmatch_595-3 - [user_741-273-7248_unmatch_621-883-6784.txt](user_741-273-7248_unmatch_621-883-6784.txt): when user has only one match. - [user_621-883-6784_unmatch_741-273-7248.txt](user_621-883-6784_unmatch_741-273-7248.txt): when the other user has only one match. - + +your program should print all users' information into the output file. This output file should be different from the original input file in two aspects: First, in your output file, this user should be excluded; Second, in your output file, this user's phone number should not appear on any user's like list. In summary, anything about this user should be erased from output file. ### Output File Order