对于一个从事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
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1...
分类:
编程语言 时间:
2014-08-02 09:50:13
阅读次数:
232
题目是这样的:给你一个单链表的表头,再给你其中某个结点的指针,要你删除这个结点,条件是你的程序必须在O(1)的时间内完成删除。
由于有的同学对链表还不是很熟悉,本文尽量描述的通俗易懂,老鸟请直接跳过前面一大段。
链表结构如下:
struct node
{
int val;
node* next;
};
题目不是很难,很快就能想到好办法:)
首先回顾一下普通的删除方法,...
分类:
其他好文 时间:
2014-08-02 05:14:14
阅读次数:
231
#include#include#includeusing namespace std;struct node{ int a; char s[105]; }p[105];int cmp(node c,node b){ return c.a #include #inclu...
分类:
其他好文 时间:
2014-08-02 01:42:32
阅读次数:
246
错误#include#include#includeusing namespace std;struct node { int a; char s[1000]; }p[1000];int cmp(node c,node b){ return c.ap[k].s[j]) p[k].a++; ...
分类:
其他好文 时间:
2014-08-02 01:37:12
阅读次数:
212
c++构造函数初始化成员变量列表: 1 #pragma once 2 class Node 3 { 4 public: 5 int data; // 权值 6 Node *parent; // 父节点 7 Node *left; // 左子节...
分类:
编程语言 时间:
2014-08-02 01:35:02
阅读次数:
263