- 博客(3)
- 收藏
- 关注
原创 学习笔记-repo基本使用
首先当前目录产生一个.repo目录然后克隆一份repo的源代码到.repo/repo下,里面存放了其他repo子命令,即repo的主体部分。接着从manifest_git_path仓库地址clone清单库到.repo/manifests和.repo/manifests.git目录。同时.repo目录下还包括manifest仓库(清单库)内容。
2023-10-11 14:25:33
268
原创 引用传参过程中使用了同一块地址
#include using namespace std; void sway(int& a, int& b) {//在快排过程中,由于每一轮的high和loww会相遇,则引用的是同一块地址就会出现b=0的情况 a += b; b = a - b; a = a - b; } int partition(int a[], int low, int high) { int flag = a[low]; int loww = low; while (loww < high) { while
2020-11-17 18:22:20
93
原创 树(二叉树)——学习笔记
#二叉查找树 ##insert (sp:重复元的插入可以通过在节点记录中保留一个附加域用来指示频率) searchtree insert(elementtype x,searchtree t) { if (t == NULL) { t = malloc(sizeof(struct treenode)); if (t == NULL) fataerror("out of space"); else { ...
2020-05-11 17:06:55
165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人