#include #include using namespace std;#define MAX 100 //字符串最大长度typedef struct Node //二叉树结点{ char data; Node *lchild,*rchild;} *B...
分类:
其他好文 时间:
2014-08-16 22:23:51
阅读次数:
266
1 include 2 using namespace std; 3 #include 4 5 typedef int T; 6 7 class List{ 8 struct Node{ 9 T data1;10 ...
分类:
其他好文 时间:
2014-08-16 12:28:50
阅读次数:
200
1.非递归先序遍历要点:总是先访问根root,而将root的右结点压入栈中,当root没有左结点时,取出栈顶元素给root。void preorder(node* root){ if(root==NULL) return; stack s; while(true){ ...
分类:
其他好文 时间:
2014-08-16 12:19:30
阅读次数:
171
在安装express时增加generator参数: npm install -g express-generator 为什么要加上generator呢? 原先的express带cli,?现在把cli拆成了单独的express-generator包.?原先的express运行生成的项目是node?app...
分类:
Web程序 时间:
2014-08-16 02:18:09
阅读次数:
325
npm ERR! at Object.parse (native)
npm ERR! at RegClient.<anonymous> (/usr/local/node/lib/node_modules/npm/node_ ...
分类:
Web程序 时间:
2014-08-16 01:12:19
阅读次数:
382
暂未发现什么bug,如果发现请指出。#includeusing namespace std;//定义二叉搜索树的结点struct Node{ int data; Node *lc,*rc,*parent;};//中序遍历二叉搜索树void show(Node *now){ if(n...
分类:
编程语言 时间:
2014-08-15 21:08:39
阅读次数:
305
#include
#include
#include
using namespace std;
struct Data
{
void assign(int x,int y,int z)
{
row=x;
col=y;
val=z;
}
int row,col,val;
} data[730];
struct Node
...
分类:
其他好文 时间:
2014-08-15 16:02:29
阅读次数:
1129
运行ansbile时候报错:[root@localhostpyhook-2014-06-09-17:47:17-2454]#ansibleTraceback(mostrecentcalllast):File"/usr/bin/ansible",line25,in<module>fromansible.runnerimportRunnerFile"/usr/lib/python2.6/site-packages/ansible/runner/__init__.py",line37,in..
分类:
其他好文 时间:
2014-08-15 14:53:19
阅读次数:
203
一个简单的三维BFS:
刚开始说内存超出了,就把 标记走过的路语句 和 判断到达终点的语句 放在了push(next)之前
#include
#include
#include
#include
#define N 51
using namespace std;
struct node{
int x,y,z;
int t;
};
int dir[8]...
分类:
其他好文 时间:
2014-08-15 14:45:28
阅读次数:
292
创建节点createElement()var node = document.createElement(“div”);没什么可说的,创建一个元素节点,但注意,这个节点不会被自动添加到文档(document)里。2、创建文本节点createTextNode()var value = document...
分类:
编程语言 时间:
2014-08-15 12:44:58
阅读次数:
288