📄 binarysearch.h
字号:
//************ BinarySearch.h *************
# ifndef BINARYSEARCH_H
# define BINARYSEARCH_H
#include <iostream>
using namespace std;
class Binarysearch
{
public:
Binarysearch( int *xbptr,int xsearchKey,int xlow,int xhigh,int xsize );//constructing function
int bSearch ( int a, int b[ ] ); // search element a in the array of b
void sort( int xa[], int xsize ); // sort the numbers you input
~Binarysearch(); // destructing function
private:
int size; // size of the array you input
int * bptr; // point to the array
int a; //the number you search
int low; // 0
int high; // n-1
};
# endif;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -