mirror of
https://github.com/huihut/interview.git
synced 2026-03-13 10:02:55 +08:00
添加查找算法和SingleProblem
This commit is contained in:
20
Algorithm/FileSearch/README.md
Normal file
20
Algorithm/FileSearch/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
## 文件(文本)查找
|
||||
|
||||
### 代码
|
||||
|
||||
[文件(文本)查找代码](search.cpp)
|
||||
|
||||
### 功能说明
|
||||
|
||||
本程序实现对英文文本中关键字的查找
|
||||
|
||||
返回关键字出现的位置(第几个词)
|
||||
|
||||
### 代码简述
|
||||
|
||||
从`output.txt`文件读入数据(英文文本)到 `vector<string>` 中存储
|
||||
|
||||
通过用户输入关键字(`keyword`)进行查找
|
||||
|
||||
输出查找到的关键字出现的位置(第几个词)
|
||||
Reference in New Issue
Block a user