
c++
zhangfenger
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
numeric_limits<double>::max ()
std::numeric_limits<double>::max () 返回编译器允许的 double 型数 最大值。 std::numeric_limits<int>::max () 返回 编译器允许的 int 型数 最大值。 使用时需包含头文件 #include <limits>...原创 2018-12-27 14:35:20 · 5383 阅读 · 0 评论 -
*** Error in `./test': double free or corruption (fasttop): 0x0000000001143610 ***
*** Error in `./test': double free or corruption (fasttop): 0x0000000001143610 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f8f60b0e7e5] /lib/x86_64-linux-gnu/libc.so...原创 2019-01-14 20:59:10 · 3085 阅读 · 2 评论 -
c++ std::vector 模板类 有两个参数
std::vector< Eigen::Matrix3d, Eigen::aligned_allocator<Eigen::Matrix3d> > vector的声明如下: template<typename _Tp, typename _Alloc = std::allocator<_Tp> > class vector : prot...原创 2019-01-09 11:33:18 · 7387 阅读 · 0 评论 -
error: #error This file requires compiler and library support for the ISO C++ 2011 standard.
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")原创 2019-01-18 21:59:24 · 4621 阅读 · 0 评论 -
count count_if 函数
原文:https://blog.csdn.net/sinat_24310873/article/details/53364185 1)count(first,last,value):first是容器的首迭代器,last是容器的末迭代器,value是询问的元素,整个函数返回int型。count函数的功能是:统计容器中等于value元素的个数。 2)count_if(first,last,co...原创 2019-01-17 17:02:36 · 1323 阅读 · 0 评论 -
static_cast dynamic_cast 介绍
转自https://blog.csdn.net/qq_26849233/article/details/62218385 一、static_cast关键字(编译时类型检查) 用法:static_cast < type-id > ( expression ),该运算符把expression转换为type-id类型,但没有运行时类型检查来保证转换的安全性,它主要有如下几种用法: ...转载 2019-01-17 11:45:16 · 187 阅读 · 0 评论 -
eigen 作为函数参数错误
error: invalid initialization of non-const reference of type 'Eigen::Matrix<double, 4, 4>&' from an rvalue of type 'Eigen::Matrix<double, 4, 4> error: static assertion failed: YOU_MIX...原创 2019-01-11 15:36:43 · 2186 阅读 · 0 评论 -
google protobuf linux ubuntu 16.04 安装
参考:https://www.cnblogs.com/luoxn28/p/5303517.html 下载代码: https://github.com/protocolbuffers/protobuf cd protobuf ./autogen.sh ./configure make make check sudo make install sudo ldconfig # refr...原创 2018-12-28 15:43:00 · 416 阅读 · 0 评论 -
gtest 安装 ubunutu16.04
下载代码: https://github.com/google/googletest 终端执行命令: cd googletest/ cmake CMakeLists.txt make cd lib sudo cp libgtest*.a /usr/lib cd .. sudo cp -a googletest/include/gtest/ /usr/include/ 安装完成,...原创 2018-12-28 16:48:58 · 492 阅读 · 0 评论 -
c++优先队列(priority_queue)用法详解
https://blog.csdn.net/weixin_36888577/article/details/79937886转载 2018-12-27 15:27:07 · 2739 阅读 · 0 评论