From b122d659c326a58ff9c305e544181855e7f47fad Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Thu, 28 May 2020 21:36:11 -0400 Subject: [PATCH] document text_search --- search/text_search.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/search/text_search.cpp b/search/text_search.cpp index 903442fc4..ee66a506a 100644 --- a/search/text_search.cpp +++ b/search/text_search.cpp @@ -1,9 +1,17 @@ +/** + * \file + * \brief Search for words in a long textual paragraph. + */ #include #include -#include - -char paragraph; +#ifdef _MSC_VER +#include // required for MS Visual C++ +#else +#include +#endif +/** Main function + */ int main() { std::string paragraph; std::cout << "Please enter your paragraph: \n";