node,express开发环境等安装假设已经搞好了。
justhacker@justhacker-ThinkPad-Edge-E440:~/projects/nodejs$ express -e chattingnode
create : chattingnode
create : chattingnode/package.json
create : chattin...
分类:
Web程序 时间:
2014-06-03 02:31:27
阅读次数:
285
1、Maximum Depth of Binary Tree
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 leaf node.
clas...
分类:
其他好文 时间:
2014-06-02 23:13:22
阅读次数:
290
BFS+状态压缩,做了很多状态压缩了。今晚把八数码问题给搞定了。 1 #include 2
#include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct node_st
{ 8 int x, y, ...
分类:
其他好文 时间:
2014-06-02 17:14:38
阅读次数:
232
ODBC(Open Database
Connectivity,开放数据库互连)1992年,微软公司开放服务结构(WOSA,Windows Open Services
Architecture)中有关数据库的一个组成部分,它建立了一组规范,并提供了一组对数据库访问的标准API(应用程序编程接口)。这...
分类:
数据库 时间:
2014-06-02 13:40:18
阅读次数:
328
1.地址:http://nodejs.org/download/进入后按不同的操作系统下载相应的安装包2.下载后运行即可。
可在命令行输入 node -v 和 npm -v 查看是否安装成功 3.npm(Node包管理器)安装,更新,卸载包 (1)全局模式下载,进入命令行模式输入:
n...
分类:
Web程序 时间:
2014-06-02 08:14:44
阅读次数:
293
函数指针即为指向一个函数的指针。要定义一个函数指针,只需将需要指向的函数的原型中函数名的前面加一个"*"号即可。比如,函数foo的原型为:int
foo(int, char, struct node);那么要建立一个指向foo的指针,名为bar,就可以这样写:int (*bar)(int, char...
分类:
其他好文 时间:
2014-06-02 06:15:10
阅读次数:
218
typedef struct node//该结构体代表一个结点{ int data;
//结点的数据域 struct node *next; //结点的指针域}lnode,*linklist;
//定义一个结构体变量和指向结构体的指针//用头插法创建一个链表linklist ...
分类:
其他好文 时间:
2014-06-02 05:50:31
阅读次数:
341
层(Layer)的生命周期函数有如下:init()。初始化层调用。onEnter()。进入层时候调用。onEnterTransitionDidFinish()。进入层而且过渡动画结束时候调用。onExit()。退出层时候调用。onExitTransitionDidStart()。退出层而且开始过渡动画时候调用。cleanup()。层对象被清除时候调用。 提示 层(Layer)继承于节点(Node...
分类:
其他好文 时间:
2014-06-02 02:31:05
阅读次数:
337
Node即学即用
REPL(Read-Evaluate-Print-Loop)
console.log
.clear .help .exit
require('http') createServer
聊天服务器
tcp服务器
require(‘net')
on connection
on data...
分类:
其他好文 时间:
2014-06-01 18:20:16
阅读次数:
464
Node.js是一个能够让javascript执行在server上的平台,既是语言又是平台。Node.js是一个实时web应用程序的平台。Node.js有强大的包管理器npm,故node相关软件安装用npm命令安装。
分类:
Web程序 时间:
2014-06-01 16:46:44
阅读次数:
268