procedure TForm1.TreeView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
var node: TTreeNode;
begin if Boolean(TreeView1.GetNodeAt(X,Y...
分类:
其他好文 时间:
2014-07-29 21:39:32
阅读次数:
244
#include #include #include #include using namespace std;int a,b,c,s,e;int v[101][101];struct node{ int x,y,ans;}q[100001],t,f;void FILI(int xx,int ...
分类:
其他好文 时间:
2014-07-29 21:29:12
阅读次数:
231
1 package leetcode; 2 3 import java.util.HashMap; 4 import java.util.Map; 5 6 class Node{ 7 int key; 8 int value; 9 Node pre;10 Nod...
分类:
其他好文 时间:
2014-07-29 21:16:32
阅读次数:
287
Layer 游戏中的背景容器,Layer类是Node类的一个子类,它实现了触屏事件代理(TouchEventsDelegate)协议。LayerColor是Layer的一个子类,它实现了RGBAProtocol协议。LayerGradient是LayerColor的一个子类,它在背景上画渐变效果。L...
分类:
其他好文 时间:
2014-07-29 17:40:42
阅读次数:
391
最底层是通信层corosync/openais 负责cluster中node之间的通信 上一层是Resource Allocation Layer,包含下面的组件: CRM Cluster Resouce Manager 是总管,对于resource做的任何操作都是通过它。每个机器上都有一个CRM。...
分类:
其他好文 时间:
2014-07-29 17:19:52
阅读次数:
155
#include #include #include #define ZERO 0#define clen 26 /* 26个字母 */const char fc = 'a';typedef struct node{ struct node *child[clen]; /* 存储下一个字符 */ i...
分类:
其他好文 时间:
2014-07-29 16:57:02
阅读次数:
256
描述:递归代码: 1 class Solution: 2 # @param num, a list of integers 3 # @return a tree node 4 def sortedArrayToBST(self, num): 5 if len(...
分类:
其他好文 时间:
2014-07-29 16:41:11
阅读次数:
210
添加非root用户 under root permision adduser?wedate
passwd?wedate—>?input?the?new?password
chmod?u+w?/etc/sudoers
vim?/etc/sudoers
添加?wedate?????All=(ALL)?????
ALL?在root之后...
分类:
数据库 时间:
2014-07-29 16:08:39
阅读次数:
597
栈属于数据结构,它本质上属于线性表,只是受限的线性表。我们今天来讨论下动态栈也就是链栈的相关问题。#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
typedefstructNode
{
intdata;
structNode*pNext;
}NODE,*PNODE;
typedefstructStack
{..
分类:
其他好文 时间:
2014-07-29 15:28:39
阅读次数:
248
在计算机科学中,二叉树是一种重要的非线性的数据结构。每个结点的度均小于等于2,通常子树称为左子树和右子树。而排序二叉树是二叉树中的一种,其满足:1. 如左子树不为空,那么左子树上的结点的值都小于其根上的值;2. 如右子树不为空,那么右子树上的结点的值都大于其根上的值; 3. 其子树也是一个排序二叉树。
下面用递归的方式来插入一个结点来满足上述的要求:
typedef struct Node
{...
分类:
其他好文 时间:
2014-07-29 15:02:28
阅读次数:
160