2017年11月3日

摘要: 在学习《视觉SLAM 14讲》第5章安装Point Cloud Library出现的问题和解决方法 Ubuntu 14.04 环境下安装 添加ppa: ( 摘自 http://pointclouds.org/downloads/linux.html ) 但是在Ubuntu 16.04 环境下添加pp 阅读全文
posted @ 2017-11-03 21:12 rocklee25 阅读(1126) 评论(0) 推荐(0) 编辑
 

2017年8月22日

摘要: #include using namespace std; class Test { public: void fun1(); void fun1() const; }; void Test::fun1() { coutfun1(); //访问常成员函数 return 0; } 阅读全文
posted @ 2017-08-22 17:21 rocklee25 阅读(402) 评论(0) 推荐(0) 编辑
 

2017年8月20日

摘要: #include using namespace std; class Test { public: Test():x(0), y(0) { cnt++; } int x; int y; void print() const; static int cnt; static void print_s(); ... 阅读全文
posted @ 2017-08-20 20:05 rocklee25 阅读(3333) 评论(0) 推荐(0) 编辑
 

2017年8月19日

摘要: 摘自:《Linux C编程一站式学习》 使用dup和dup2系统调用,需要判断返回值,如果返回值为-1,重定向失败 阅读全文
posted @ 2017-08-19 22:02 rocklee25 阅读(306) 评论(0) 推荐(0) 编辑
 

2017年8月18日

摘要: 函数原型: void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); 作用:将文件映射到以addr为起始地址的进程内存空间,在调用时,通常将addr参数传为NULL,由内核选择起始的虚拟地址空间 阅读全文
posted @ 2017-08-18 21:58 rocklee25 阅读(792) 评论(0) 推荐(0) 编辑
 

2017年8月11日

摘要: #include using namespace std; int main() { int A[2][5]={{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}}; int (*p_a)[5]; p_a = &A[1]; cout<<*((*p_a)+2)<<endl; cout<<(*p_a)[2]<<endl; // int... 阅读全文
posted @ 2017-08-11 21:57 rocklee25 阅读(168) 评论(0) 推荐(0) 编辑
 

2017年6月6日

摘要: 1. 确定网络畅通,通过ping服务端 2. 确定服务端的sshd服务启动,通过netstat -ltnp | grep 22 或者通过systemctl status sshd.service。如果没有启动,通过systemctl start sshd.service启动sshd 3. 如果还不能 阅读全文
posted @ 2017-06-06 11:41 rocklee25 阅读(2197) 评论(0) 推荐(0) 编辑
 

2017年6月1日

摘要: ip link show命令查看网卡名 systemctl enable dhcpcd@网卡名.service archlinux使用pacman -S openssh安装ssh服务,使用全路径运行sshd服务 如果在/ect/ssh/目录下没有ssh_host_***_key这样的文件sshd服务 阅读全文
posted @ 2017-06-01 23:03 rocklee25 阅读(2216) 评论(0) 推荐(0) 编辑
 

2017年5月31日

摘要: URL: http://asionius.com/article/9 https://www.ibm.com/developerworks/cn/linux/l-vfs/ 阅读全文
posted @ 2017-05-31 22:45 rocklee25 阅读(109) 评论(0) 推荐(0) 编辑
 

2017年5月28日

摘要: 克隆产生的虚拟机启动会出现提示信息 "interface eth0 doesn't exist" 解决方案1:删除文件 /etc/udev/rules.d/70-persistent-net,然后reboot 解决方案2(未测试):在vmware虚拟机的设置界面中将网卡直接删除,然后重新添加新的虚拟 阅读全文
posted @ 2017-05-28 22:28 rocklee25 阅读(366) 评论(0) 推荐(0) 编辑