- 博客(9)
- 收藏
- 关注
原创 c++ 面试题
#includeusing namespace std;int main(){ int arr[] = {5,6,7,8,9}; int *ptr = arr; *(ptr++) += 123; //*ptr += 123 ,ptr++ cout<<*(ptr)<<","<<*(++ptr)<<endl; //7,7 //++ptr , cout } #incl
2017-12-03 20:57:38
164
原创 strlen和sizeof
#include#includeusing namespace std; int main(){ char a[9] = "Hello"; cout<<sizeof(a)<<" "<<strlen(a)<<endl; char b[] = "Hello"; cout<<sizeof(b)<<" "<<strlen(b)<<endl; char *c = "Hello"; c
2017-11-14 09:26:23
144
原创 c++虚函数
1.不是虚函数#includeusing namespace std; class A{public: void show() { cout<<"AA"<<endl; } }; class B:public A{public: void show() { cout<<"BB"<<endl; } };int main(){ B b;
2017-11-14 08:06:49
174
原创 moveit双臂机器人程序
改代码基于pr2机器人// moveit双臂函数 基于pr2#include #include #include #include #include #include #includeusing namespace std;int main(int argc, char **argv){ ros::init(argc, argv, "move_group_inte
2017-11-09 19:39:18
1606
10
原创 KINECT2.0开发实践_1:简单介绍
玩Kinect有一年多了,后来也学了其他好多东西,到最后想把以前的东西再看看,不知道会有什么不一样的收获。我的博客会参考Begging大神的博客,基本上在他的基础上改的,大家也可以参考大神的博客。一、安装配置安装包:vs2013,opencv3.0.0,kinect驱动。配置kinect首先,新建个项目,然后在【解决方案资源管理器】中右键项目名,选择【属性】在【
2017-08-10 17:01:46
680
原创 显示点云文件代码
有时,在显示点云的时候都需要用vs打开工程换了文件名之后,再编译,运行(编译有时非常的慢)所以改了一下代码可能会方便一点。代码如下:#include #include #include #include int user_data;void viewerOneOff (pcl::visualization::PCLVisualizer& viewer){ v
2016-09-08 17:21:58
689
1
原创 agrc argv解释
以前经常看见过 :int main(int argc, char** argv)这样形式的main但是一直没有这样用直到研究点云时发现有个例子是 :>****.exe ***.pcd这样的doc下的命令才想起有这样的两个参数,其实这个理解起来也是很简单的。(貌似我还不会插代码)#includeusing namespace std;int main(int arg
2016-09-08 16:34:21
854
原创 ubuntu14.04+libfreenect2配置kinect2.0
在ubuntu下配置libfreenect2比在windows下配置要简单的多了。只要参考https://github.com/OpenKinect/libfreenect2 linux下的教程一步一步敲上面的命令就可以了。1.下载libfreenect2,并转到libfreenect下git clone https://github.com/OpenKinect/libfreen
2016-08-26 13:28:48
2643
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人