-
内部分别使用了两种查找的封装分为以下两种模式
-
内置模式
内置模式下将使用内部封装的数据存储容容器对数据进行存储
内置模式下数据类型锁死,仅支持int类型的数据传入
数据输入可使用构造函数或使用自动构造函数
-
配置模式
配置模式下支持用户传入的顺序表并对其进行查找操作,但需要其内部封装相关的操作函数,具体函数请自行查看接口说明
内部提供了一个简单封装的顺序表方便使用,此顺序表可替换成你自己的顺序表,但需要满足一定要求,具体要求同上
-
-
对于实验,你可以选择性使用内置模式或配置模式的相关代码,而不需要全写,因为它们的内部实现相近,只是配置模式可支持非基本数据类型
所以你只需要抄其中的一个就行了
-
使用时,你可以使用其中的自动构造函数方便测试,但它们本身可能并不适合生产环境(因此并未提供相对应的get和set函数)
-
如何拉取代码:
通用:
git clone https://github.com/stvsl/Search.git
针对国内
git clone https://gitee.com/stvsl/Search.git
-
没了应该
wirte by :
stvsl
2021 11 30