上一页 1 2 3 4 5 6 7 8 9 10 ··· 37 下一页
摘要: 1、函数指针,用于保存函数的入口地址,即函数名。 // 函数指针的基本用法 // 声明一个函数 int func(int); // 写法1 // 定义一个函数指针 int (*fptr)(int); // 形式上只比函数多了一个*号和一对圆括号 // 写法2 // 声明一个函数指针类型 typede 阅读全文
posted @ 2020-03-05 22:03 happyyoung 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: 在使用基本指针类型时,因为要手动释放指针指向的内存,常常容易造成内存泄漏,特别是异常分支很多的情况下。而智能指针类型就是将基本指针类型封装成模板类,以便更好地管理内存。 智能指针都包含一个explicit构造函数,因此基本指针类型不能隐式转换成智能指针,需要显式调用。 shared_ptr<doub 阅读全文
posted @ 2020-03-05 21:59 happyyoung 阅读(1277) 评论(1) 推荐(0) 编辑
摘要: 索引原理 存储引擎 阅读全文
posted @ 2020-03-05 21:58 happyyoung 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 智能指针和普通指针转化 阅读全文
posted @ 2020-03-04 15:27 happyyoung 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 1、标题 # 参考链接: https://markdown-zh.readthedocs.io/en/latest/ 阅读全文
posted @ 2020-03-04 15:05 happyyoung 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 读文件 std::ifstream infile; infile.open("/Users/yangwenhuan/IVP_workbench/test/graph.prototxt"); std::stringstream buf; buf << infile.rdbuf(); string pr 阅读全文
posted @ 2020-03-04 14:47 happyyoung 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 图表示 1)邻接矩阵 2)邻接链表 阅读全文
posted @ 2020-02-25 16:02 happyyoung 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、使用proto3 syntax = "proto3"; 2、命名空间 package IVP; message Graph { repeated Node nodes = 1; repeated Edge edges = 2; } $PROTOC --cpp_out=$XWORKBENCH_RO 阅读全文
posted @ 2020-02-25 09:16 happyyoung 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Json::Value 阅读全文
posted @ 2020-02-24 11:12 happyyoung 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 作用域枚举 阅读全文
posted @ 2020-02-24 10:21 happyyoung 阅读(252) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 37 下一页