#includeusing namespace std;class Node{public: Node(int value) : value(value), next(NULL) {}public: int value; Node* next;};Node* reverseList...
分类:
编程语言 时间:
2014-06-27 20:02:00
阅读次数:
253
关键代码: /// ///同步父子节点勾选状态 ///说明 ///在AfterCheckNode事件中使用代码 ///eg:e.Node.SyncNodeCheckState(e.Node.CheckState); /// /// 需要同步的节点 /// 节点当前勾选状态 ...
前段时间学习《深入浅出Nodejs》时,在第四章 - 异步编程中作者朴灵曾提到,异步编程的难点之一是异常处理,书中描述"尝试对异步方法进行try/catch操作只能捕获当次事件循环内的异常,对call back执行时抛出的异常将无能为力"。 果然,项目测试过程中,连续两天遇到了Node.js进...
分类:
Web程序 时间:
2014-06-26 20:38:44
阅读次数:
334
-- author : coder_zhang-- date : 2014-6-25root = nilfunction insert_node(number) if root == nil then root = {value = number, left = nil, ...
分类:
其他好文 时间:
2014-06-26 16:51:36
阅读次数:
170
http://acm.hdu.edu.cn/showproblem.php?pid=1372以前真二,模板题OJ真奇怪,有时能A有时W,#include #include #include #include using namespace std;struct node{ int x,y,z;...
分类:
其他好文 时间:
2014-06-26 12:17:50
阅读次数:
161
Selenium Grid Configuration
1. Start Selenium Hub
java -jar selenium-server-standalone-2..jar
-role hub
2. Start Selenium Node
Start with Node contains Selenium RC...
分类:
其他好文 时间:
2014-06-26 11:52:37
阅读次数:
433
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
#define mod 1000000007
using namespace std;
struct node
{
int x...
分类:
其他好文 时间:
2014-06-26 11:48:43
阅读次数:
214
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
#define mod 1000000007
using namespace std;
struct node
{
int x...
分类:
其他好文 时间:
2014-06-26 11:39:45
阅读次数:
206
很多需要注意的地方我全给了中文标识,但是这里我还要再次说明下新版本的touch OneByOne机制:
1.listener根据Node的优先级排序后,依次响应。值得注意的是,新版本的优先级是根据Node的global Zorder来的,而不是2.x的触摸优先级。
2.当TouchEvent Began来了之后,所有的listener会依次影响Touch Began。然后再依次响应Touch Move...而不是一个listener响应完 began move end之后 轮到下...
分类:
其他好文 时间:
2014-06-26 07:13:01
阅读次数:
275
【题目】
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 each node, and , as a separator for node label and each ne...
分类:
其他好文 时间:
2014-06-26 06:48:16
阅读次数:
285