adding the no match case

This commit is contained in:
Jidong Xiao
2023-10-17 16:50:07 -04:00
parent 8d60da6e08
commit 47fef340a6
2 changed files with 17 additions and 1 deletions

View File

@@ -83,13 +83,29 @@ Based on Rule 1 and Rule 2: when the search query is *Tom Cruise*, the third pag
More rules will be added here.
## Supported Commands
## Input Files
To be added.
### Output File Format and Order
To be added.
The output of your program should go to the output file.
- If no matches can be found for a search query, your search engine should print the following message to the output file.
```console
Your search - dsdwoddjojdjeokdddfjwoewojo - did not match any documents.
```
Replace *dsdwoddjojdjeokdddfjwoewojo* with the search query.
This behavior matches with what Google does.
![alt text](images/no_match.png "no match")
- If matches are found, to be added here.
## Program Requirements & Submission Details
In this assignment, you are required to use std::map, and std::set, you are NOT allowed to use any data structures we have not learned so far, but feel free to use data structures we have already learned, such as std::string, std::vector, std::list. In addition, **the web crawler component of your program must be recursive**.

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB