码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
pomelo 开发环境搭建
开发前提条件:Windows系统,请确保你的Windows系统包括源代码编译工具。Node.js的源代码主要由C++代码和JavaScript代码构成,可是却用gyp工具来做源代码的项目管理,该工具採用Python语言写成的。在Windows平台上,Node.js採用gyp来生成Visual Stu...
分类:其他好文   时间:2014-06-26 23:02:12    阅读次数:295
[WinForm][DevExpress][TreeList]节点互斥
关键代码: /// /// 节点互斥同步 /// 说明 /// eg: ///TreeListNode _node = e.Node; ///_node.SyncMutexNodeCheckState(_node.CheckState, n => n.GetNodeType() == NodeTyp...
分类:Windows程序   时间:2014-06-26 21:10:28    阅读次数:322
[WinForm][DevExpress][TreeList]父子节点CheckState状态同步
关键代码: /// ///同步父子节点勾选状态 ///说明 ///在AfterCheckNode事件中使用代码 ///eg:e.Node.SyncNodeCheckState(e.Node.CheckState); /// /// 需要同步的节点 /// 节点当前勾选状态 ...
分类:Windows程序   时间:2014-06-26 20:54:50    阅读次数:410
【Node.js】为什么使用Try, Catch捕获异常,程序依然Crash?
前段时间学习《深入浅出Nodejs》时,在第四章 - 异步编程中作者朴灵曾提到,异步编程的难点之一是异常处理,书中描述"尝试对异步方法进行try/catch操作只能捕获当次事件循环内的异常,对call back执行时抛出的异常将无能为力"。 果然,项目测试过程中,连续两天遇到了Node.js进...
分类:Web程序   时间:2014-06-26 20:38:44    阅读次数:334
利用Lua实现二叉查找树并进行各种遍历
-- 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
hdu 1429 状压bfs
#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
cocos2d-x 源码分析 : EventDispatcher、EventListener、Event 源码分析 (新触摸机制,新的NotificationCenter机制)
很多需要注意的地方我全给了中文标识,但是这里我还要再次说明下新版本的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
LeetCode: Clone Graph [133]
【题目】 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
hdu1671Phone List(字典树)
#include #include #include #include using namespace std; typedef struct Node { struct Node *next[10]; int flag; }Node,*Tree; int flag1; void Cre...
分类:其他好文   时间:2014-06-25 11:27:43    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!