![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++数据结构
文章平均质量分 72
cxh_dream
这个作者很懒,什么都没留下…
展开
-
C++中的二分查找
#include "iostream.h"const int n=7;char R[n+1];class cz{public: char binsearch(char R[n+1],char k);};char cz::binsearch(char R[n+1],char k){ int low=1,high=n; while(low { int mid=(low+high)/2原创 2009-06-03 18:04:00 · 517 阅读 · 0 评论 -
C++中的线性探查法
#include "iostream.h"const int m=13;const int n=10;int r[n+1];class lnode{public:int j; int h(int k) //构造散列函数 { return k%13; } void creat(int ht[m],int n)原创 2009-06-04 22:48:00 · 950 阅读 · 0 评论