提示的问题如下: error : argument of type "void *(*)(void *)" is incompatible with parameter of type "CUT_THREADROUTINE"解决方法是将下面的代码void* routine(void *pvoidDa...
分类:
其他好文 时间:
2014-09-28 13:12:12
阅读次数:
323
手牌A8s,筹码只有3个大盲了,在cut-off位置,前面所有人都fold,只有上家miausita跟了一个大盲,这个时候我选择了all-in搏一把,果然如预期,除了miausita其他人都fold了。 结局是悲催的,被人主宰踢脚然后出局了...
分类:
其他好文 时间:
2014-09-27 15:33:10
阅读次数:
157
Clone an undirected graph. Each node in the graph contains a label and
a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for ea...
分类:
其他好文 时间:
2014-09-27 15:16:19
阅读次数:
121
[plain]
view plaincopyprint?
#! /bin/sh while true; do i=`df -h | egrep '/mnt/yourpath'| awk '{print $5}' | cut -d "%" -f1 -`
if [ "$i" -ge 90 ] then echo "disk nearly full" cd /mnt/your...
分类:
系统相关 时间:
2014-09-27 09:35:19
阅读次数:
240
1OGNL概述 OGNL是对象图导航语言Object-Graph Navigation Language的缩写,它是一种功能强大的表达式语言(Expression Language,简称为EL),通过它简单一致的表达式语法,可以存取对象的属性,调用对象的方法,遍历整个对象的结构图,实现字段类型转化....
分类:
其他好文 时间:
2014-09-26 21:52:28
阅读次数:
254
split是分隔字符的(貌似类似于cut)>>>a=‘192.168.1.60root22111111‘>>>a‘192.168.1.60root22111111‘>>>a.split()默认以空格为分隔[‘192.168.1.60‘,‘root‘,‘22‘,‘111111‘]>>>b=‘my..name..is..ghn‘>>>b‘my..name..is..ghn‘>&g..
分类:
编程语言 时间:
2014-09-26 20:54:48
阅读次数:
236
#include
#include
using namespace std;
#define ABANDON 0
#define GET 1
deque graph[2010];
int DP[2010][2];
void DFS( int start, int parent ){
DP[start][ABANDON] = 0;
DP[start][GET]...
分类:
其他好文 时间:
2014-09-26 20:53:58
阅读次数:
144
1、如果需要将label靠左边对齐,则必须重写底层源码新增mxText的一个构造器,主要是增加了一个参数:x(代表当前的cell) 1 function mxText(a, b, c, d, e, f, g, h, k, i, l, m, n, o, p, q, t, u, v, w, x) { 2...
分类:
其他好文 时间:
2014-09-26 11:10:58
阅读次数:
187
#!/bin/bash
[-fuser.log]&&rm-fuser.log
foriin`seq-w10`
do
pass=$(echo$RANDOM`opensslrand-base648`|cut-c1-10)
useraddguest$i&&echo"$pass"|passwd--stdinguest$i
echo-e"user:guest$i\tpass:$pass">>user.log
done
分类:
系统相关 时间:
2014-09-25 02:34:18
阅读次数:
261
Modelsim之error “unable to check out a viewer license necessary for use of the modelsim graph.Vsim is closing” 原因:之前破解的modelsim对应PC的Physiacl Addres...
分类:
其他好文 时间:
2014-09-24 22:23:37
阅读次数:
635