上一页 1 2 3 4 5 6 ··· 105 下一页
摘要: 转自:https://blog.csdn.net/sevenjoin/article/details/88314531,讲的很好。 1.介绍 若针对一个类没有显式地定义构造函数,那么编译器会隐式的为这个类生成一个默认构造成员函数。 默认构造函数就是在调用时不需要显示地传入实参的构造函数。 假如用户定 阅读全文
posted @ 2024-04-21 22:18 lypbendlf 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.介绍 #命令行指定c++11 g++ --std=c++11 ./seqid.cpp -o seqid #cmake中指定c++编译 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11") 阅读全文
posted @ 2024-04-14 21:15 lypbendlf 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.C++ to pb 1.1 map嵌套对象结构 //pb数据结构 message Inner { repeated string codes = 1; map<string, string> ext = 2; }; message Outer { map<int32, Inner> uint2I 阅读全文
posted @ 2024-04-14 20:29 lypbendlf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 转自:https://juejin.cn/post/6933180767656738824 1.介绍 代码 -> 词法语法分析 -> 语义分析 -> 中间代码生成 -> 目标代码生成 编译器:中间代码生成。编译器会尝试对中间代码进行优化,通过减少无效或冗余的代码、计算强度优化等手段,以助于减少最终生 阅读全文
posted @ 2024-04-14 19:57 lypbendlf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.介绍 # 查看安装的所有软件【带简介】 # dpkg -l|grep ifupdown iH ifupdown 0.8.10ubuntu1.2 amd64 high level tools to configure network interfaces #使用apt查看已安装版本 # apt l 阅读全文
posted @ 2024-04-14 19:32 lypbendlf 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.codedump.info/post/20200605-how-to-read-code-v2020/ https://www.zhihu.com/question/21186887,https://boholder.github.io/blogs/learn-from 阅读全文
posted @ 2024-04-14 14:19 lypbendlf 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 转自: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 阅读(8) 评论(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 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/136355306 1.流程 如果是从github上下载的别人的仓储,想推到自己的下面,那肯定是已经关联了远程仓储了,查看关联: git remote -vv #查看已关联的远程仓储 git remote rm origin #删除已关 阅读全文
posted @ 2024-02-03 16:58 lypbendlf 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 转自:https://segmentfault.com/a/1190000002608050 1.介绍 JSON本身并没有对整数的大小有硬性限制,而是依赖于使用JSON的库以及相应的编程语言的数据类型。JSON(JavaScript Object Notation)是一种轻量级数据交换格式,它独立于 阅读全文
posted @ 2024-01-30 01:35 lypbendlf 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 105 下一页