链表类依赖于cmath头文件,使用ListNode,List四个文件实现: ListNode.h: 1 /********************************************* 2 ListNode.h 3 链表节点(模板)类 ListNode 4 T 节点数据 5 pred 前 ...
分类:
其他好文 时间:
2020-11-12 14:13:56
阅读次数:
5
1、Processes and Threads In concurrent programming, there are two basic units of execution: processes and threads.(并发程序中,有2个基本的执行单位:进程、线程) 1.1、Processe ...
分类:
编程语言 时间:
2020-11-12 13:23:54
阅读次数:
6
先看两个例子,比较不同: 例一(有回调函数) #include <iostream> using namespace std; void foo_one() { cout<<"foo_one"<<endl; } void foo_two() { cout<<"foo_two"<<endl; } ty ...
分类:
其他好文 时间:
2020-11-11 16:29:50
阅读次数:
8
git fetch, git pull, git pull -rebase区别 抄经的和尚 2016-04-20 13:51:32 15084 收藏 9 分类专栏: 技术总结 文章标签: git pull git rebase git merge 1、git fetch vs git pull 都是 ...
分类:
其他好文 时间:
2020-11-10 11:42:33
阅读次数:
29
#1:在数组中找两个数,使其和为target 链接:https://leetcode-cn.com/problems/two-sum/ 暴力就是n^2,可以用map来做,这里介绍一下map.count(tmp)函数,是搜索key的值,map里存在值为tmp的key就返回1,否则是0 #122:给定一 ...
分类:
其他好文 时间:
2020-11-08 17:59:16
阅读次数:
25
# 作用就是:将可迭代对象中的元素和索引同时取出 seq = ['one', 'two', 'three'] for i, element in enumerate(seq): print('index:element {}: {}'.format(i, element)) print('\n') ...
分类:
编程语言 时间:
2020-11-08 16:38:34
阅读次数:
16
# 放弃merger master到mzhuo分支的代码,甚至之后新提交的代码也放弃(最终git上没有操作记录) # 前期进入分支操作 1 cd Documents/Yv/ 2 ls 3 git status 4 git pull origin 5 git branch 6 git checkout ...
分类:
其他好文 时间:
2020-11-07 16:25:13
阅读次数:
19
1、 生成publicKey和password 找到maven资源库中druid的jar包,如:C:\Users\a\.m2\repository\com\alibaba\druid\1.1.6,其中a为用户名。 打开cmd,将路径切换至C:\Users\a\.m2\repository\com\a ...
分类:
数据库 时间:
2020-11-06 02:10:35
阅读次数:
32
指令 提前配置 查看当前版本:git --version 查看git配置信息:git config --list 配置提交人姓名:git config --global user.name 你的姓名 配置提交人邮箱:git config --global user.email 你的邮箱 提交步骤 初 ...
分类:
其他好文 时间:
2020-11-04 19:13:54
阅读次数:
21
原文链接:https://without.boats/blog/two-memory-bugs-from-ringbahn/ 原文标题:Two Memory Bugs From Ringbahn 公众号:Rust 碎碎念 翻译: Praying 在实现ringbahn[1]的时候,我引入了至少两个 ...
分类:
其他好文 时间:
2020-11-04 17:55:28
阅读次数:
13