摘要: 持续收集中... 1 基础(9) 1)C++中有malloc/free,为什么还需要new/delete? new/delete会调用构造/析构函数,适合于类类型对象的创建与销毁。 2)C++中explicit关键字的作用? 关闭函数的类型自动转换(防止隐式转换)。 3)C++中static关键字的 阅读全文
posted @ 2022-09-14 11:37 Pepetang 阅读(5226) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】https://www.cnblogs.com/pepetang/p/13267380.html 交叉编译gperftools,参考https://blog.csdn.net/mynameislu/article/details/27321727 交叉编译perl,需要的补丁包参考ht 阅读全文
posted @ 2020-07-08 15:53 Pepetang 阅读(1456) 评论(0) 推荐(0) 编辑
摘要: 即使class完全不带virtual函数,被“non-virtual析构函数问题”给咬伤还是有可能的。举个例子,标准string不含任何virtual函数,但有时候程序员会错误的把它当做base class: 乍看似乎无害,但如果你在程序任意某处无意间将一个pointer to SpecialStr 阅读全文
posted @ 2019-10-14 10:10 Pepetang 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 持续收集中... 1 数组名与一般的指针有哪些区别? 数组名是内存块的首地址,它是一个常量指针。使用sizeof测试数组时得到的数组所占的空间大小,即元素占的空间*数组长度。 2 inline函数的好处? 节省调用开销;相对于宏展开,inline发生在编译阶段,会做类型检查。 3 C语言中stati 阅读全文
posted @ 2019-10-01 18:22 Pepetang 阅读(1530) 评论(0) 推荐(0) 编辑
摘要: 1.NPP库:multiple definition of `npp::operator<<(std::ostream&, npp::Exception const&)' https://devtalk.nvidia.com/default/topic/1049649/cuda-programmin 阅读全文
posted @ 2019-08-23 10:29 Pepetang 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 官方代码托管地址:https://github.com/Tencent/ncnn 在Extractor类中添加以下方法: 阅读全文
posted @ 2019-08-13 17:58 Pepetang 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 官方代码托管地址:https://github.com/luoyetx/mini-caffe 在Net类中增加以下方法: 阅读全文
posted @ 2019-08-13 17:57 Pepetang 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 使用xfce4时出现屏幕以鼠标位置为焦点放大的情况,解决办法:Alt+滚轮缩小屏幕到默认显示。参考:https://bbs.archlinuxcn.org/viewtopic.php?id=4804 2 使用Xterm时进行拷贝操作:鼠标左键选中要复制的内容,此时该内容已被自动复制到剪切板,使用 阅读全文
posted @ 2019-07-19 20:21 Pepetang 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 【参考链接】 https://blog.csdn.net/zhuiqiuk/article/details/71123414 https://silentinfotech.com/blog/steps-to-install-windows-10-on-existing-ubuntu-16-04/ 【 阅读全文
posted @ 2019-05-27 15:11 Pepetang 阅读(3068) 评论(0) 推荐(0) 编辑
摘要: 1 部分库无须编译,包含头文件即可直接使用 摘抄自:https://github.com/dec1/Boost-for-Android Many of the boost libraries (eg. algorithm) can be used as "header only" ie do not 阅读全文
posted @ 2019-04-18 21:37 Pepetang 阅读(180) 评论(0) 推荐(0) 编辑