码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
c语言指针
例子:struct context { uint edi; uint esi; uint ebx; uint ebp; uint eip;}; ...p->context = (struct context*)sp;p->context->eip = (uint)forkret;结构体成...
分类:编程语言   时间:2014-06-28 17:26:51    阅读次数:172
研碎bst
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服务器
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
将日期和时间作为 struct tm型的值直接向二进制文件进行读写
#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
C语言——结构体数组的使用案例(如何判断两个矩形是否相交,其中一个是否包含在另外一个里面,点是否在矩形中)
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介绍
基于selenium的自动化测试,华为已经做了两代了,目前是做到SmartGUI2.0,基于他们自己的AutoSpace平台。不过目前支持的貌似只有IE和火狐(火狐3.6)。控件录制支持ID,Name属性,Struct类型,Xpath。个人觉得已经相当成熟了,AutoSpace是集成商公司测试工具部...
分类:其他好文   时间:2014-06-28 14:51:59    阅读次数:160
gocrawl 分析
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
第三部分 基本类型:第15章 枚举类型和位标志
15.1 枚举类型枚举类型定义了一组“符号名称/值”配对。例如,以下Color类型定义了一组符合,每个符号表示一种颜色。internal enum Color{ White, //赋值0 Red, //赋值1 Green, //赋值2 Blue, //赋值3 Or...
分类:其他好文   时间:2014-06-23 07:20:33    阅读次数:203
BZOJ 1050 旅行comf(枚举最小边-并查集)
题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=1050题意:给出一个带权图。求一条s到t的路径使得这条路径上最大最小边的比值最小?思路:将边排序。枚举最小边,然后将边一个一个插到并查集里,s和t联通时计算更新答案。struct node{...
分类:其他好文   时间:2014-06-23 06:13:19    阅读次数:221
【linux设备模型】之platform设备驱动
一、platform总线、设备和驱动 platform是一种虚拟总线,对应的设备称为platform_device,对应的驱动称为platform_driver。platform_device定义在中: 1 struct platform_device { 2 const char ...
分类:系统相关   时间:2014-06-23 00:17:01    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!