function on(node,eventType,handler){ //e=window.event||e; node=typeof node=="string"?document.getElementById(node):node; if(document.all) //IE ...
分类:
Web程序 时间:
2014-08-02 23:15:34
阅读次数:
607
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?题意:...
分类:
其他好文 时间:
2014-08-02 20:52:54
阅读次数:
246
struct Node{ int data; Node *next;};//创建链表 输入为数字,如果输入0 链表结束(0不计)Node *creat(){ Node *head,*p,*s; int x,cycle=1; head=(Node *)malloc(siz...
分类:
其他好文 时间:
2014-08-02 20:50:24
阅读次数:
292
1、node.js去官网下载,下载完,像平时安装软件一样2、把下面的测试文件,放到安装目录下,本文是放到:D:\Program Files\nodejs下var http = require("http"); http.createServer(function(request, response)...
这个才是我们学node.js的真正原因,服务器!1、新建一个 index.js 写下var myhttp=require('http');myhttp.createServer(function(req,res){res.writeHead(200,{'Content-Type':''text/t....
分类:
Web程序 时间:
2014-08-02 18:05:13
阅读次数:
224
对于一个从事js的工作人员,怎么能不知道node.js呢!一、安装node.js在window上安装,http://nodejs.org上的windows installer 下载安装,在安装过程中本人喜欢点击next 到安装完成...如果你不确定你已经成功安装 打开cmd输入 node -v出现 ...
分类:
Web程序 时间:
2014-08-02 17:54:13
阅读次数:
235
//25...9.4.
//4.71.3..6
//8.34.759.
//3.8.7..69
//.1.3.24..
//5.49.6.83
//9.6.3.7.8
//.3.6.8.1.
//1.2.9.6.4
struct node
{
node(int r,int c):row(r),col(c) {}
friend ostream& operator <<(ostr...
分类:
其他好文 时间:
2014-08-02 15:31:53
阅读次数:
272
首先来看这一部分代码 1 /** 2 * Created by bsn on 14-7-1. 3 */ 4 var connect = require('connect'); 5 6 var app = connect(); 7 function hello(req, res, next) {...
分类:
Web程序 时间:
2014-08-02 12:41:53
阅读次数:
193
1 if (e.Node.Parent!=null)//如果存在父节点2 {3 MessageBox.Show(e.Node.Text);//就显示当前选中的4 }
分类:
其他好文 时间:
2014-08-02 12:23:03
阅读次数:
157
#include
#include
#define maxn 10002
int ans, queue[maxn];
struct Node{
int to, next, val;
} map[maxn << 1];
struct node{
int first, money, indegree;
} head[maxn];
bool topoSort(int n)
{...
分类:
其他好文 时间:
2014-08-02 10:07:43
阅读次数:
196