随笔分类 -  c/c++

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

【c++基础】static修饰的函数作用与意义
摘要:static修饰的函数作用与意义 参考 1.static修饰的函数作用与意义; 完 阅读全文

posted @ 2019-02-25 10:21 鹅要长大 阅读(7340) 评论(1) 推荐(2)

【c++】函数默认参数
摘要:c++ Prime Plus sixth edition page274 参考 1. http://www.cnblogs.com/graphics/archive/2010/07/15/1778291.html 2. https://blog.csdn.net/vlily/article/deta 阅读全文

posted @ 2019-02-21 17:15 鹅要长大 阅读(208) 评论(0) 推荐(0)

[err]default argument given for parameter 3 of '***'
摘要:err yuanyin: 既可以在类的声明中,也可以在函数定义中声明缺省参数,但不能既在类声明中又在函数定义中同时声明缺省参数。 因此,将定义或声明中的任一个缺省参数删除即可。 ref 1. 编译错误:error: default argument given for parameter 1 of 阅读全文

posted @ 2019-02-21 16:42 鹅要长大 阅读(724) 评论(0) 推荐(0)

[err]multiple definition of `***'
摘要:err CMakeFiles/dsm.dir/src/main_stateEstimation.cpp.o: In function `align_mean(cv::Mat, cv::Rect_<int>, float, float, float, float)': main_stateEstima 阅读全文

posted @ 2019-02-21 15:38 鹅要长大 阅读(357) 评论(0) 推荐(0)

创建文件夹c++
摘要:linux 注意,成功创建文件夹mkdir返回值为0,否则为-1。另外,如果文件夹已存在,则返回-1。 文件目录只能一级级的创建,不能直接创建多级目录。 window 阅读全文

posted @ 2019-01-22 16:25 鹅要长大 阅读(736) 评论(0) 推荐(0)

c++字符串前几位,后几位的截取
摘要:参考 1. https://blog.csdn.net/haijunsm/article/details/82733584 完 阅读全文

posted @ 2019-01-22 15:34 鹅要长大 阅读(3500) 评论(0) 推荐(0)

c++将数字转换成固定长度的字符串
摘要:c++将数字转换成固定长度的字符串 将数字转换为字符串,且设置为固定长度的,不足补零。 参考 1. https://blog.csdn.net/m0_37733057/article/details/79035923 完 阅读全文

posted @ 2019-01-21 12:44 鹅要长大 阅读(3186) 评论(0) 推荐(0)

【error】'isnan' was not declared in this scope
摘要:error问题 isnan在cmath中被取消宏定义; 使用的时候可以在isnan前加上std命名空间即可; 阅读全文

posted @ 2019-01-09 16:50 鹅要长大 阅读(2405) 评论(0) 推荐(0)

[c++]base64编解码 and image
摘要:1. https://blog.csdn.net/sky04/article/details/6881649 2. https://blog.csdn.net/wushuangge/article/details/80104152 3. https://blog.csdn.net/tt_ren/ar 阅读全文

posted @ 2019-01-03 13:21 鹅要长大 阅读(346) 评论(0) 推荐(0)

C++中vector容器的常用操作方法实例总结
摘要:C++中vector容器的常用操作方法实例总结 参考 1. C++中vector容器的常用操作方法实例总结; 完 阅读全文

posted @ 2018-12-29 10:46 鹅要长大 阅读(366) 评论(0) 推荐(0)

[error]OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file modules/imgproc/src/resize.cpp, line 3289
摘要:error 阅读全文

posted @ 2018-12-25 16:42 鹅要长大 阅读(2949) 评论(0) 推荐(0)

TensorRT caffemodel serialize序列化
摘要:1、TensorRT的需要的文件 需要的基本文件(不是必须的) 1>网络结构文件(deploy.prototxt) 2>训练的权重模型(net.caffemodel) TensorRT 2.0 EA版中的sampleMNISTAPI和TensorRT 1.0中的sampleMNISTGIE 几乎没有 阅读全文

posted @ 2018-12-05 11:00 鹅要长大 阅读(1585) 评论(0) 推荐(0)

异或运算的性质及应用
摘要:运算法则 参考 1. http://www.cnblogs.com/danh/archive/2010/12/24/1915810.html 2. https://blog.csdn.net/gtkknd/article/details/52798337 3. https://blog.csdn.n 阅读全文

posted @ 2018-12-04 10:19 鹅要长大 阅读(251) 评论(0) 推荐(0)

c++函数参数类型-引用、指针、值
摘要:c++函数参数类型-引用、指针、值 https://www.cnblogs.com/lidabo/archive/2012/05/30/2525837.html 阅读全文

posted @ 2018-12-03 16:21 鹅要长大 阅读(457) 评论(0) 推荐(0)

STL容器vector应用注意事项
摘要:【1】提前分配足够空间以免不必要的重新分配和复制代价 同样是push_back操作,预分配足够空间和不分配空间的时间代价显而易见。 【2】使用shrink_to_fit()释放vector占用的内存。(备注:clear() 和 erase()不会释放内存) shrink to fit 压缩到合适的大 阅读全文

posted @ 2018-11-30 17:03 鹅要长大 阅读(694) 评论(0) 推荐(0)

multi-thread debug
摘要:1、不要去解锁一个未被加锁的mutex锁; 2、不要一个线程中加锁而在另一个线程中解锁; 3、使用mutex锁用于保护临界资源,严格按照“加锁-->写入/读取临界资源-->解锁”的流程执行,对于线程间同步的需求使用条件变量或信号量实现。 对于“线程间同步”的使用方法可以使用条件变量或者是信号量实现而 阅读全文

posted @ 2018-11-29 11:10 鹅要长大 阅读(367) 评论(0) 推荐(0)

SEGMENTATION FAULT IN LINUX 原因与避免
摘要:https://www.cnblogs.com/no7dw/archive/2013/02/20/2918372.html 阅读全文

posted @ 2018-11-28 14:37 鹅要长大 阅读(235) 评论(0) 推荐(0)

char *s 和 char s[] 的区别
摘要:From: http://duanhengbin.iteye.com/blog/1706635 https://blog.csdn.net/zlQQhs/article/details/39290977 阅读全文

posted @ 2018-11-28 14:26 鹅要长大 阅读(712) 评论(0) 推荐(0)

【Eigen开源库】linux系统如何安装使用Eigen库
摘要:1.安装eigen. sudo apt-get install libeigen3-dev 默认安装路径是/usr/include/eigen3 文件包含 /usr/include/eigen3$ ls Eigen signature_of_eigen3_matrix_library unsuppo 阅读全文

posted @ 2018-11-26 14:15 鹅要长大 阅读(8032) 评论(0) 推荐(1)

【c++基础】遍历目录并写入txt文件-linux
摘要:前言 /****************************************************************************** * File: get_traindata.cpp * Coder: AMY * Email: happyamyhope@163.co 阅读全文

posted @ 2018-11-07 17:13 鹅要长大 阅读(1124) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

导航