上一页 1 2 3 4 5 6 7 8 ··· 107 下一页
摘要: 转自:https://blog.csdn.net/qq_35067322/article/details/121551469 https://jasonkayzk.github.io/2020/05/03/Git-Worktree的使用/ 1.介绍 当在一个仓储下,在A分支编译时,是不能切到B分支上 阅读全文
posted @ 2024-03-18 21:52 lypbendlf 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 转自:https://subingwen.cn/cmake/CMake-primer/index.html 1.预定义宏 PROJECT_SOURCE_DIR 2. option和add_definitions的区别 来自chatgpt 3.5。 option: option 用于定义 CMake 阅读全文
posted @ 2024-02-06 15:09 lypbendlf 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/136355306 1.流程 如果是从github上下载的别人的仓储,想推到自己的下面,那肯定是已经关联了远程仓储了,查看关联: git remote -vv #查看已关联的远程仓储 git remote rm origin #删除已关 阅读全文
posted @ 2024-02-03 16:58 lypbendlf 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 转自:https://segmentfault.com/a/1190000002608050 1.介绍 JSON本身并没有对整数的大小有硬性限制,而是依赖于使用JSON的库以及相应的编程语言的数据类型。JSON(JavaScript Object Notation)是a56爆大奖在线娱乐轻量级数据交换格式,它独立于 阅读全文
posted @ 2024-01-30 01:34 lypbendlf 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/adaptiver/article/details/52925792 1.介绍 vector+sort 实际是快排,快速排序是目前已知的所有排序算法中最快的排序算法。例子: #include <vector> #include <set> #incl 阅读全文
posted @ 2024-01-14 13:51 lypbendlf 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 转自:chatgpt 1.介绍 std::for_each 是 C++ 标准库中的一个算法,用于对指定范围内的元素执行指定的操作。它的一般形式如下: template <class InputIt, class UnaryFunction> UnaryFunction for_each(InputI 阅读全文
posted @ 2024-01-14 13:16 lypbendlf 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.runoob.com/w3cnote/cpp-func-pointer.html,写的非常好 1.函数指针 函数的函数名就是它的地址,存储在代码区。如同数组一样,数组的名字就是数组的起始地址。 定义: data_types (*func_pointer)( data_t 阅读全文
posted @ 2024-01-06 16:38 lypbendlf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 转自:chatgpt 1.介绍 C++11 引入了 std::this_thread::sleep_for,它更加直观易用,不需要手动转换时间单位,可以接受以秒、毫秒、微秒等为单位的参数,使得代码更加可读且具备更好的可移植性。 例子: #include <iostream> #include <th 阅读全文
posted @ 2024-01-06 15:46 lypbendlf 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 转自:https://cplusplus.com/reference/iterator/advance/ 1.介绍 模板原型,第一个参数是迭代器,第二个参数是距离,移动迭代器指定距离。 template <class InputIterator, class Distance> void advan 阅读全文
posted @ 2024-01-06 15:31 lypbendlf 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 转自:/welkinwalker/archive/2011/11/29/2267225.html,/pugang/p/9500352.html 1.介绍 #include <gmock/gmock.h> #i 阅读全文
posted @ 2024-01-01 22:29 lypbendlf 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 107 下一页