上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 345 下一页
摘要: C++ 提供了多种代码重用机制,在前面介绍派生和继承时,派生类可以继承基类中的成员变量和成员函数。模板是另一种代码重用机制。 有时候... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(15) 评论(0) 推荐(0)
摘要: #include using namespace std;template void Swap(T &a, T &b); //模板... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(8) 评论(0) 推荐(0)
摘要: 计算机编程语言种类繁多,目前能够查询到的有 600 多种,常用的不超过 20 种,TIOBE 每个月都会发布世界编程语言排行榜,统计... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(14) 评论(0) 推荐(0)
摘要: link CMAKE_AR: 静态库的归档工具的名称。这个变量指定了用于创建档案或静态库的程序的名称。 CMAKE_ARGC: 在脚... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(54) 评论(0) 推荐(0)
摘要: CMake的几种Include include_directories()target_include_directories()a... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(123) 评论(0) 推荐(0)
摘要: 代码在git 假设我们有个main.c,其内容如下 #include int main(void){#ifdef WWW1 p... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(80) 评论(0) 推荐(0)
摘要: cmake_minimum_required(VERSION 3.0)project(DBoW2)include(ExternalP... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(44) 评论(0) 推荐(0)
摘要: 代码在git 有时希望在编译代码时只编译一些指定的源码,可以使用cmake的option命令,主要遇到的情况分为2种: 本来要生成多... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(14) 评论(0) 推荐(0)
摘要: 代码在git 有时编译程序时想添加一些编译选项,如-Wall,-std=c++11等,就可以使用add_compile_option... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(189) 评论(0) 推荐(0)
摘要: 代码在git 既然我们已经生成了库,那么就进行链接测试下。重新建一个工程目录,然后把上节生成的库拷贝过来,然后在在工程目录下新建sr... 阅读全文
posted @ 2022-08-19 22:47 luoganttcc 阅读(75) 评论(0) 推荐(0)
上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 345 下一页