http://www.nodejs.org/http://outofmemory.cn/code-snippet/1403/node-javascript-classic-introduction-HTTP-service-qi-codehttp://outofmemory.cn/code-snip...
分类:
其他好文 时间:
2014-07-19 20:39:22
阅读次数:
217
1 client: socket.io server: node.js + express + socket.io 一个简单的聊天室 demo,没有注册,内置了一些测试用户2 client 关键代码var socket = io.connect('http://localhost:8080');.....
分类:
Web程序 时间:
2014-07-19 20:25:18
阅读次数:
252
#include #include using namespace std;typedef struct Node{ Node* lchild; Node* rchild; int data;}BNode,BTree;void visit(Node*);void inorder(B...
分类:
其他好文 时间:
2014-07-19 19:26:40
阅读次数:
226
类似于二叉树的三种遍历,我们可以基于遍历的模板做很多额外的事情,图的两种遍历,深度和广度模板同样也可以做很多额外的事情,这里举例利用深度优先遍历的模板来进行复制,深度优先中,我们先访问第一个结点,接着访问第一个邻接点,再访问邻节点的邻节点。。。。
class Solution:
# @param node, a undirected graph node
# @return a ...
分类:
编程语言 时间:
2014-07-18 23:11:00
阅读次数:
331
1.命令行工具 node -v 版本 node -e eval script(执行eval方法) 例如:node -e "console.log('测试')"; node 直接进入编译模式
分类:
Web程序 时间:
2014-07-18 19:31:57
阅读次数:
234
下面是MSDN关于SYS.dm_hadr_instance_node_map 的解释,我就不在翻译了For every instance of SQL Server that hosts an availability replica that is joined to its AlwaysOn a...
分类:
其他好文 时间:
2014-07-18 19:28:26
阅读次数:
262
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-07-17 23:27:12
阅读次数:
216
简单搜索
直接代码:
#include
#include
#include
#include
using namespace std;
char a,c;
int e,f;
int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2};
int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1};
int qq[9][9];
struct node
{...
分类:
其他好文 时间:
2014-07-17 19:05:30
阅读次数:
265
distributed使用文档1、distributed说明该模块主要封装了各个服务进程间进行通信的方法。node子节点域root根节点进程中的接口调用返回的都是延迟对象。关于延迟对象的使用,详见twisted中Deferred对象。2、结构解析PBRoot,root节点对象ChildsManage...
分类:
其他好文 时间:
2014-07-17 18:02:27
阅读次数:
175
链表定义:(java版)一种递归的数据结构,他或者为空,或者是指向一个节点的引用,该节点含有一个泛型的元素和指向另一个链表的引用。在这个定义中,节点是一个可能含有任意数据类型的抽象实体,这也是为什么使用泛型来表示的原因。一:链表构造,节点概述我们可以使用Node来表示一个结点:private cla...
分类:
其他好文 时间:
2014-07-17 13:35:26
阅读次数:
230