![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 75
潜心上路的小萝卜
这个作者很懒,什么都没留下…
展开
-
数据结构与算法分析的C++描述结构学习(2)
将二分搜索写成 #include using namespace std; int binarysearch(int a[],int left,int right,const int &x) { if(left>right) { cout return 0; } int center = (left+right)/2; if(a[center] left=cente原创 2014-10-30 20:57:16 · 486 阅读 · 0 评论 -
重修C++的大三老人笔记
C++寻找最大数组的leimo #include #include using namespace std; #define size 8 template class add { public: T findmax(); void put(T x); add() : count(0), max(0), pos(0) {} //写类模板时构造函数不可少 privat原创 2014-10-05 19:48:15 · 496 阅读 · 0 评论