看下面两段代码,
typedef pairVirObjTYPE, std::listCheckID>*> VirObj_CheckID_pair;class LangChecker{public: LangChecker(); //completed in an auto-generated file ../parser/LangChecker_init.cpp which init...
分类:
其他好文 时间:
2014-08-08 16:06:26
阅读次数:
247
定义一颗字典树:
struct Trie
{
int n; // n可以存储相关有用信息,视情况而定
Trie *next[maxn]; //maxn视字典树中有多少种元素而定
}
定义字典树的根并初始化:
Trie *root;
void init()
{
root = (Trie *)malloc(sizeof(Trie));
root ->...
分类:
其他好文 时间:
2014-08-08 16:03:16
阅读次数:
170
维基百科:http://zh.wikipedia.org/zh-cn/并查集假设初始化时用数组表示每个位置上的元素其father是自己,以对象是整数集为例Init:fori<- 1:n do father[i]<- i;findFather(x)if father[x] = x return f.....
分类:
其他好文 时间:
2014-08-08 15:45:36
阅读次数:
169
安装 下载 git OSX 版 下载 git Windows 版 下载 git Linux 版 创建新仓库 创建新文件夹,打开,然后执行 git init 以创建新的 git 仓库。 检出仓库 执行如下命令以创建一个本地仓库的克隆版本: git clone /pat...
分类:
其他好文 时间:
2014-08-08 13:02:46
阅读次数:
294
#salt ?‘*‘ ?state.sls ? httpd 这个命令会先在目录/srv/salt下找httpd.sls(yml语法格式编写的)文件,若:有就安装文件内容执行,若没有的话就继续找/srv/salt/httpd目录下init.sls,找到了安装文件内容执行,没...
分类:
其他好文 时间:
2014-08-08 13:00:46
阅读次数:
288
var myChart= echarts.init(document.getElementById('myChart'));
myChart.on('click', function (param) {
alert('点击了我!');
});
Echart事件参数可以去config.js查找...
分类:
其他好文 时间:
2014-08-08 12:49:45
阅读次数:
772
Applet1)简单说,Applet就是嵌入到网页中的小程序,Java代码。2)编写Applet程序,要继承JApplet类,并根据自己需要覆写相关方法(init、start、stop、destroy)即可。3)Applet生命周期: 初始化阶段:init方法(自动被调用,完成图形组件的初始化和版....
分类:
移动开发 时间:
2014-08-08 12:12:55
阅读次数:
184
Unlike other programming paradigms in which apps are launched with a main()method, the Android system initiates code in an Activity instance by invoking specific callback methods that correspond to specific stages of its lifecycle. There is a sequence of c...
分类:
移动开发 时间:
2014-08-08 08:28:45
阅读次数:
539
#include #include #define LIST_INIT_SIZE 100#define LIST_INCREMENT 10typedef struct Point //element type{ int x; int y;}Point;typedef Point ElemType;t...
分类:
其他好文 时间:
2014-08-08 01:48:05
阅读次数:
292
通过ss -s 命令,可以看到服务器的timewait状态特别多。[root@tvreport231 ~]# ss -s
Total: 103 (kernel 256)
TCP: 48666 (estab 22, closed 48624, orphaned 7, synrecv 0, timewait 48623/0), ports 18
netstat也是可以看到的,但是需要添加 -a参数...
分类:
其他好文 时间:
2014-08-07 23:07:35
阅读次数:
268