From 4b9079cf59a364f9f660d897522f2976d6ec1a66 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 2 Oct 2023 16:42:56 -0400 Subject: [PATCH] two more requirements, delete and unmatch --- hws/05_online_dating/README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hws/05_online_dating/README.md b/hws/05_online_dating/README.md index fd039f9..f25f3a9 100644 --- a/hws/05_online_dating/README.md +++ b/hws/05_online_dating/README.md @@ -51,13 +51,15 @@ These two images will give you a better understanding on some of the above field ## Specification -Your program will support three commands. +Your program will support five 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. delete account. -More details about each of these three commands are given below. +More details about each of these five commands are given below. ### Show Profiles @@ -97,6 +99,28 @@ Only premium users can view who liked you. When the user is indeed a premium user, see [like.txt](like.txt) for the format of the output file. +## Unmatch Someone + +According to [Tinder's guide](https://www.help.tinder.com/hc/en-us/articles/115003360106-Unmatching-and-reporting):"When you unmatch someone, they'll disappear from your match list and you'll disappear from theirs." + +When the user (here, *phoneNumber* is this user's phone number) runs this command: + +```console +nydate.exe input.txt output.txt phoneNumber unmatch phoneNumberOther +``` + +And *phoneNumberOther* represents the user whom this user wants to unmatch with. + +## Delete Account + +Users can delete their accounts. + +When the user (here, *phoneNumber* is this user's phone number) runs this command: + +```console +nydate.exe input.txt output.txt phoneNumber delete +``` + ## Program Requirements & Submission Details In this assignment, you are required to create linked lists, but you are not allowed to use the std::list library. In addition, you are NOT allowed to use std::vector, or any data structures we have not learned so far.