1 #include 2 #include 3 struct node{ 4 double x,y; 5 }point[100000]; 6 struct node nod; 7 int n=0,i=0; 8 int sort(void){ //选择排序:从小到大 9 ...
分类:
其他好文 时间:
2014-11-02 19:32:55
阅读次数:
285
作者:zhanhailiang 日期:2014-11-02
PM2是Node.js应用程序的进程管理管理,目前已在生产环境被普遍使用,提供以下特性:
Transitional state of apps
Process listing
Automatic restart process based on memory
Monitoring CPU/Memory u...
分类:
Web程序 时间:
2014-11-02 18:19:30
阅读次数:
455
10分算法:对于城市网络为一条单向链的数据, 20分算法:对于n 2 #include 3 #include 4 #include 5 using namespace std; 6 #define M 500001 7 #define N 100001 8 struct Node 9 {10 ...
分类:
移动开发 时间:
2014-11-02 16:14:26
阅读次数:
415
lua 里,类型强转 local widget = Widget:create() local node = widget:getWidgetWithName("lab"); --node 类型是:Widget local button = tolua.cast(node,...
分类:
其他好文 时间:
2014-11-02 13:41:18
阅读次数:
213
学习数据结构,一直对二叉树不了解,对指针的调用一知半解。这二天学二叉树,搞懂了一点点,先写出代码,以后再边学习边来改进。
#include
#include
typedef char DataType;
typedef struct node
{
DataType data;
struct node *lchild;
struct node *rchild;
...
分类:
其他好文 时间:
2014-11-02 12:33:39
阅读次数:
307
/*
建立链栈实现括号匹配问题 创建栈,判断是否空栈
*/
#include
#include
#include
#define status int
typedef struct node
{
char ch;
node* next;
}SNode;
typedef struct
{
SNode *top;
//SNode *base;
}Stack;
//创建空栈 ...
分类:
其他好文 时间:
2014-11-02 09:24:08
阅读次数:
316
发现很多node的书介绍express文件上传都是基于3.*版本的,
现在express的版本都是4.+的,很多以前的代码跑不动了
所以自己折腾了个小demo
实现了限制上传文件种类和大小
例子是基于formidable模块的
github地址为https://github.com/felixge/node-formidable
var express = require('expre...
分类:
Web程序 时间:
2014-11-02 09:21:40
阅读次数:
552
涉及获取元素的主要API在获取原生DOM元素的时候,主要涉及这几个DOM API(链接为Living Standard):Node及对应集合NodeListElement(继承Node)及对应集合HTMLCollectionDocument(继承Node)注:计划取代NodeList和HTMLCol...
分类:
Web程序 时间:
2014-11-02 00:25:54
阅读次数:
345
#include "stdio.h"
#include "conio.h"
#include "string.h"
#include "stdlib.h"
#define null 0
typedef struct node
{char item[10];
struct node *next;}node;//定义链式堆栈元素类型
typedef struct stack
{node *top;...
分类:
其他好文 时间:
2014-11-01 23:13:19
阅读次数:
315