图
0.1
数据结构_第13章
|
程序设计题第1题:以递归实现二分查找 More...
#include "Set.h"
#include <algorithm>
#include <climits>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iostream>
#include <vector>
Go to the source code of this file.
Functions | |
template<class Key_T , class Other_T > | |
size_t | binarySearch (Set::Set< Key_T, Other_T > data[], size_t low, size_t high, const Key_T &x) |
二分查找(递归版本) More... | |
int | main (int argc, char const *argv[]) |
测试程序 More... | |
程序设计题第1题:以递归实现二分查找
See the file LICENSE in the top directory of this distribution for more information.
Definition in file ch8_1.cc.
size_t binarySearch | ( | Set::Set< Key_T, Other_T > | data[], |
size_t | low, | ||
size_t | high, | ||
const Key_T & | x | ||
) |
int main | ( | int | argc, |
char const * | argv[] | ||
) |
测试程序
argc | 参数个数 |
argv | 参数数组 |
部分测试结果将输出到一个文本文档中
Definition at line 58 of file ch8_1.cc.
References binarySearch().