一, 目录结构 ├── CMakeLists.txt├── include│ └── shared│ └── Hello.h└── src ├── Hello.cpp └── main.cpp * link:CMakeLists.txt[] - Contains the CMake commands ...
分类:
其他好文 时间:
2019-04-14 09:16:34
阅读次数:
143
Journal Name:Journal of Proteome Research Issue:2019 March Shared by: Weining Zhao 1. Acetylome: Zhuo Zhou et al from Zhejiang University profiled the ...
分类:
其他好文 时间:
2019-04-10 20:27:57
阅读次数:
143
提到锁就不得不说到死锁的问题,而SQLite也可能出现死锁。下面举个例子:连接1:BEGIN (UNLOCKED)连接1:SELECT ... (SHARED)连接1:INSERT ... (RESERVED)连接2:BEGIN (UNLOCKED)连接2:SELECT ... (SHARED)连接 ...
分类:
数据库 时间:
2019-04-10 18:05:21
阅读次数:
228
KMP算法的重点在于: 当某一个字符与主串不匹配时,我们应该知道把指针j移动到哪里 java // next[j] = k,表示当T[i] != P[j]时,j指针的下一个位置 public static int[] getNext(String ps) { char[] p = ps.toChar ...
分类:
编程语言 时间:
2019-04-09 23:26:16
阅读次数:
282
```c++ include include using namespace std; struct A; struct B; struct A { shared_ptr B_ptr; A() { cout A_ptr; B() { cout ap(new A()); // ap 的引用计数是1 s ...
分类:
其他好文 时间:
2019-04-09 00:25:35
阅读次数:
156
1. 将CMakeLists.txt 文件中 find_package(OpenCV REQURED)补充完整为带版本号的:find_package(OpenCV 2.4.9 REQURED) 2. 将程序编译,若还不通过,参考这篇博文:https://blog.csdn.net/lql0716/a ...
分类:
其他好文 时间:
2019-04-08 21:32:06
阅读次数:
985
enable_shared_from_this是一个模板类,定义于头文件<memory>,其原型为: template< class T > class enable_shared_from_this; std::enable_shared_from_this 能让一个对象(假设其名为 t ,且已被 ...
分类:
其他好文 时间:
2019-04-08 13:57:40
阅读次数:
140
string类(常量) ***看见“”“”就是string对象 string是个常量(用final修饰) String ob="obj" 本质是常量 ob地址可以改变 常量池 String a=“abc” 一个对象 String b=new String("abc"); 两个对象 sysout(a= ...
分类:
其他好文 时间:
2019-04-05 18:07:10
阅读次数:
119
1.CPU使用率为单位时间内CPU使用情况的统计,以百分比的方式展示。 LINUX作为一个多任务操作系统,将每个CPU的时间划分为很短的时间片,再通过调度器轮流分配给各个任务使用,因此造成多任务同时运行的错觉 2.如何查看CPU使用率? TOP和PS是最常用的性能分析工具。TOP显示了系统总体的CP ...
分类:
系统相关 时间:
2019-04-05 14:31:21
阅读次数:
500
本文内容转自知乎 作者:no.body 链接:https://www.zhihu.com/question/19801131/answer/27459821 回调函数(callback)是什么? 什么是回调函数? 我们绕点远路来回答这个问题。 编程分为两类:系统编程(system programmi ...
分类:
其他好文 时间:
2019-04-04 13:11:15
阅读次数:
156