会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客地址:http://home.cnblogs.com/u/zengjianrong/
focus
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2021年2月1日
BASH技巧记录
摘要: 1. 批量添加目录: export PATH=$PATH$( find /usr/local/examples/ -type d -printf ":%p" ) export PATH=$PATH$( find /usr/local/examples/ -type d -printf ":%p" )
阅读全文
posted @ 2021-02-01 16:08 black_man
阅读(53)
评论(0)
推荐(0)
2021年1月4日
变参模板,变参父(基)类
该文被密码保护。
阅读全文
posted @ 2021-01-04 15:14 black_man
阅读(0)
评论(0)
推荐(0)
2020年12月28日
pimpl+模板函数
摘要: header #include <iostream> #include <memory> // interface (widget.h) class widget { class impl; std::unique_ptr<impl> pImpl; public: void draw() const
阅读全文
posted @ 2020-12-28 19:58 black_man
阅读(173)
评论(0)
推荐(0)
2020年8月27日
C++基础类知识
摘要: 默认构造,析构 拷贝构造,移动构造 拷贝赋值,移动赋值 取值 右值引用 其它 基类的析构函数应使用virtual 关键字,保证子类的析构函数能够被正常调用 作为接口类,如果不是基类,应该用final关键字 1 // g++ testClass.cc -g -std=c++11 && ./a.out
阅读全文
posted @ 2020-08-27 20:50 black_man
阅读(181)
评论(0)
推荐(0)
2020年6月8日
linux-4.1的O0编译
摘要: 去除最顶层Makefile的-Os/-O2, 替换为-O0 替换include/linux/complier.h中:避免缺乏了编译预判后,编译时的报错被触发。 #if 1 //zjr #define __compiletime_assert(condition, msg, prefix, suffi
阅读全文
posted @ 2020-06-08 02:15 black_man
阅读(902)
评论(0)
推荐(0)
2020年5月7日
vmware/ubuntu相关问题
摘要: ubuntu的软件源依赖关系很复杂,可以通过aptitude 替换 apt ,自动提供依赖问题解决方案; vmware tools 安装 CD ROOM添加一个linux.iso 解压 sudo 执行 vmware*.pl 中文输入法:ibus pinyin shared dir sudo vmhg
阅读全文
posted @ 2020-05-07 00:39 black_man
阅读(175)
评论(0)
推荐(0)
2020年5月6日
ros2
摘要: rosdep update 失败:read operation time out 先执行sudo apt update xxx
阅读全文
posted @ 2020-05-06 00:05 black_man
阅读(129)
评论(0)
推荐(0)
2020年5月3日
ros2 dashing 安装失败指南
摘要: 22 sudo rosdep init #失败 23 sudo -E rosdep init #查看错误 24 ls 25 wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-def
阅读全文
posted @ 2020-05-03 10:14 black_man
阅读(371)
评论(0)
推荐(0)
2020年4月6日
exit回调
摘要: 在main函数结束时,或者收到signal,在signal处理函数中调用exit退出时,希望在退出前做一些资源释放的工作,则可以使用atexit注册回调; 需要注意的是,全局的资源系统会主动释放(调用析构函数),但有些线程如果在while循环中无法退出,则系统不会主动释放; 此时atexit就可以发
阅读全文
posted @ 2020-04-06 11:26 black_man
阅读(253)
评论(0)
推荐(0)
2020年4月1日
多播代码
摘要: https://github.com/xigang/mcast
阅读全文
posted @ 2020-04-01 19:44 black_man
阅读(153)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告