From 9fa616ecde16ee56c5496386b5c3aafb87dd2ada Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Wed, 25 Oct 2023 17:09:05 -0400 Subject: [PATCH] remove the star signs --- hws/07_search_engine/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hws/07_search_engine/README.md b/hws/07_search_engine/README.md index 74622ce..e075578 100644 --- a/hws/07_search_engine/README.md +++ b/hws/07_search_engine/README.md @@ -271,7 +271,7 @@ if (lastSlashPos != std::string::npos) { - erase: when doing a phrase search, we enclose our query with double quotes. Unfortunately, the autograder is not smart enough to handle this, and it will pass the double quotes as a part of the query string. And therefore, in your program, you need to remove the double quotes, and you can do so using code like this: ```cpp -// here tmpString is a string which might contain one double quote character, for example, tmpString might be *"Tom*, or it might be *Cruise"*. +// here tmpString is a string which might contain one double quote character, for example, tmpString might be "Tom, or it might be Cruise". size_t quotePos; // unfortunately, autograder will pass \" to the command line, and thus the double quote will be a part of the string. if( (quotePos = tmpString.find('"')) != std::string::npos ){