bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:
其他好文 时间:
2014-06-28 17:06:24
阅读次数:
186
Select单进程非阻塞TCP echo服务器1. select 描述 #include #include int select( int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, const struct...
分类:
其他好文 时间:
2014-06-28 15:52:47
阅读次数:
135
#include #include char data_file[]="D:\\%\\datetime.dat";void get_data(void){ FILE *fp; time_t t; if((fp = fopen(data_file,"r")) == NULL) printf("本程序第...
分类:
其他好文 时间:
2014-06-28 15:25:41
阅读次数:
254
Rect.hstruct CPoint { float x; float y;};typedef struct CPoint CPoint;struct CSize { float width; float height;};typedef struct CSize CSiz...
分类:
编程语言 时间:
2014-06-28 15:10:15
阅读次数:
381
基于selenium的自动化测试,华为已经做了两代了,目前是做到SmartGUI2.0,基于他们自己的AutoSpace平台。不过目前支持的貌似只有IE和火狐(火狐3.6)。控件录制支持ID,Name属性,Struct类型,Xpath。个人觉得已经相当成熟了,AutoSpace是集成商公司测试工具部...
分类:
其他好文 时间:
2014-06-28 14:51:59
阅读次数:
160
1. gocrawl 类结构 1 // The crawler itself, the master of the whole process 2 type Crawler struct { 3 Options *Options 4 5 // Internal fields 6 ...
分类:
其他好文 时间:
2014-06-28 13:52:36
阅读次数:
175
题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=1050题意:给出一个带权图。求一条s到t的路径使得这条路径上最大最小边的比值最小?思路:将边排序。枚举最小边,然后将边一个一个插到并查集里,s和t联通时计算更新答案。struct node{...
分类:
其他好文 时间:
2014-06-23 06:13:19
阅读次数:
221
一、platform总线、设备和驱动 platform是一种虚拟总线,对应的设备称为platform_device,对应的驱动称为platform_driver。platform_device定义在中: 1 struct platform_device { 2 const char ...
分类:
系统相关 时间:
2014-06-23 00:17:01
阅读次数:
385
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-22 23:59:58
阅读次数:
244
并查集。 1 #include 2 #include 3 #include 4 5 #define MAXN 10005 6 #define INF 0xffffff 7 8 typedef struct { 9 int c, s, e;10 } edge_st;11 12 ed...
分类:
其他好文 时间:
2014-06-21 17:29:36
阅读次数:
178