秋林箭

每夜,携酒河上,饮且渔

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年10月9日

摘要: 顶层const:修饰对象本身底层const:修饰指着所指对象,或者引用的对象所以引用是底层的,指针即可是底层也可是顶层,int等非指针类型是顶层的。总的原则是拷贝对象时,等号右边的对象的顶层const可以忽略,底层的const不行,等号左边的const都没有影响。当涉及指针所指内容,或者引用时,要求... 阅读全文
posted @ 2015-10-09 15:38 zhangyee 阅读(419) 评论(0) 推荐(0) 编辑

2015年10月1日

摘要: #includeusing namespace std;templateclass myIterator{public: myIterator(T*thePosition=0):position(thePosition){}; T&operator*(){return *position... 阅读全文
posted @ 2015-10-01 20:19 zhangyee 阅读(398) 评论(0) 推荐(0) 编辑

2015年8月13日

摘要: #include#includeusing namespace std;class node{public: char c; node*next;};node* insert(char*list,int length){ int i=0; node*first; nod... 阅读全文
posted @ 2015-08-13 23:08 zhangyee 阅读(281) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;bool sumk(int*list,int length,int*num1,int*num2,int k){ int have=false; if(list==NULL||lengthk) j--; ... 阅读全文
posted @ 2015-08-13 16:50 zhangyee 阅读(180) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;bool iswei1(int data,int wei){ int i=8*sizeof(int); data=data>>(i-wei); return(data&1);}void number1(int *list,in... 阅读全文
posted @ 2015-08-13 16:04 zhangyee 阅读(153) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;int weizhiq(int *list,int length,int start,int end,int k){ int weizhi=-1; if(start==end&&list[end]!=k)return -1; ... 阅读全文
posted @ 2015-08-13 15:12 zhangyee 阅读(137) 评论(0) 推荐(0) 编辑

2015年8月11日

摘要: #includeusing namespace std;int maxsum(int *list,int i){ if(list==NULL||imaxsum) maxsum=cursum; } return maxsum;}int main(){ in... 阅读全文
posted @ 2015-08-11 22:17 zhangyee 阅读(111) 评论(0) 推荐(0) 编辑

2015年8月8日

摘要: #includeusing namespace std;int Merge(int *list,int*copy,int s1,int s2,int end){ int i=s1; int j=s2; int k=s1; int num=0; for(int k=s1;... 阅读全文
posted @ 2015-08-08 11:39 zhangyee 阅读(286) 评论(0) 推荐(0) 编辑

摘要: 冒泡交换相邻的点使得最小的点排到最前,同时后面的点一定程度上也排序。#include#includeusing namespace std;void Bubble(int *list,int length){ bool flag=true; for(int i=0;i=i+1;j--) ... 阅读全文
posted @ 2015-08-08 09:05 zhangyee 阅读(181) 评论(0) 推荐(0) 编辑

2015年7月28日

摘要: Pcl 1.72 配置文件夹位置PCL文件夹放在E盘OpenNI,OpenNI2, FZ-API,SSBA-3.0放在D盘系统路径添加E:\PCL\bin;E:\PCL\3rdParty\Boost\lib;E:\PCL\3rdParty\Eigen\bin;E:\PCL\3rdParty\FLAN... 阅读全文
posted @ 2015-07-28 09:35 zhangyee 阅读(641) 评论(0) 推荐(0) 编辑