mirror of
https://github.com/huihut/interview.git
synced 2026-03-13 10:02:55 +08:00
添加查找算法和SingleProblem
This commit is contained in:
24
Algorithm/FileSort/README.md
Normal file
24
Algorithm/FileSort/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
## 文件(文本)排序
|
||||
|
||||
### 代码
|
||||
|
||||
[文件(文本)排序代码](sort.cpp)
|
||||
|
||||
### 功能说明
|
||||
|
||||
本程序实现选择排序和冒泡排序两个排序算法
|
||||
|
||||
并且有从小到大和从大到小两种排序方式
|
||||
|
||||
用户可进行选择需要的方式
|
||||
|
||||
### 代码简述
|
||||
|
||||
从 `output.txt` 文件读入数据(数字)到 `vector<int>` 中存储
|
||||
|
||||
通过用户输入的排序算法(`i_algorithm`)和排序方式(`i_mode`)
|
||||
|
||||
选择对于的选择排序(`SelectSort()`)或者冒泡排序(`BubbleSort()`)进行排序
|
||||
|
||||
排序后输出 `vector<int>` 到 `output.txt`
|
||||
Reference in New Issue
Block a user