摘要:
1. 安装 地址: github : https://github.com/json-c/json-c 说明: 关于开源库的安装可直接在github的说明去安装,有详细的说明,本次安装过程就省略。 2. 使用:
阅读全文
posted @ 2021-08-16 15:32
ღ惟吾德馨ღ
阅读(456)
推荐(0)
摘要:
Vundle是vim的一个插件管理器, 同时它本身也是vim的一个插件。插件管理器用于方便、快速的安装、删除、Vim更新插件。vim Vundle插件官方地址:https://github.com/VundleVim/Vundle.vim 一、下载Vundle插件: Vundle需要使用git命令来
阅读全文
posted @ 2021-06-07 17:21
ღ惟吾德馨ღ
阅读(444)
推荐(0)
摘要:
vim界面 语法补全我用的是YouCompleteMe, 有目录树插件,taglist插件等。 通过插件管理器Vundle来进行安装,具体方法自行百度。 Linux Vim插件管理器Vundle安装和使用: https://www.cnblogs.com/520dada/p/14859724.htm
阅读全文
posted @ 2021-06-07 17:16
ღ惟吾德馨ღ
阅读(201)
推荐(0)
摘要:
struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; 方法1: 迭代 class Solution { public: ListNode* ReverseList(L
阅读全文
posted @ 2021-05-30 16:32
ღ惟吾德馨ღ
阅读(55)
推荐(0)
摘要:
1. 创建2个文件 1.txt 和 2.txt 并在1.txt基础上修改成为2.txt book@100ask:~/patch$ ls 1.txt 2.txt book@100ask:~/patch$ cat 1.txt 111 222 333 book@100ask:~/patch$ cat 2.
阅读全文
posted @ 2021-05-23 20:40
ღ惟吾德馨ღ
阅读(709)
推荐(0)
摘要:
1.冒泡排序 原理:比较相邻的元素,如果前面一个比后面一个大(小),那么就交换两个数的位置,然后一直往后(前)比较,每次循环都会得到一个最大(小)的数。 int bubble_sort(int array[],int n) {int i,j;//从小到大 for(i=0;i<n-1;i++) { f
阅读全文
posted @ 2021-04-29 16:53
ღ惟吾德馨ღ
阅读(54)
推荐(0)
摘要:
原因: 由于编译器会自动将变量从内存拷贝到寄存器里面,编译器优化就是让cpu读取数据时从寄存器里面读取数据,内存变量改变了,但是寄存器的变量还是以前的。 ① 编译器很聪明,会帮我们做些优化,比如: int a; a = 0; // 这句话可以优化掉,不影响 a 的结果 a = 1; ② 有时候编译器
阅读全文
posted @ 2021-04-22 11:30
ღ惟吾德馨ღ
阅读(57)
推荐(0)
摘要:
build、host和target 在交叉编译中比较 常见 的一些参数就是build、host和target了,正确的理解这三者的含义对于交叉编译是非常重要的,下面就此进行解释 --build=编译该软件所使用的平台 --host=该软件将运行的平台 --target=该软件所处理的目标平台 那么在
阅读全文
posted @ 2021-04-14 09:01
ღ惟吾德馨ღ
阅读(509)
推荐(0)
摘要:
include 使用方法 : include filename.mk 作用: 暂停当前的makefile执行,去执行指定的makefile,执行完毕后继续执行当前的makefile -include 解释和用法 -include filename.mk#这种用法的意义是当filename.mk文件不
阅读全文
posted @ 2021-04-13 14:38
ღ惟吾德馨ღ
阅读(424)
推荐(0)
摘要:
1 . warn.c:6:2: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration] 解决:缺少strcpy头文件 2.undefined reference to `gen_zlog
阅读全文
posted @ 2021-04-09 09:40
ღ惟吾德馨ღ
阅读(355)
推荐(0)