当Nginx检测到http关键配置项时,http配置模型启动,首先会建立一个ngx_http_cong_ctx_t结构。typedef struct{ void **main_conf; void **srv_conf; void **loc_conf;}ngx_http_conf_ctx_t...
分类:
其他好文 时间:
2014-07-16 20:58:15
阅读次数:
370
union 关键字的用法与struct 的用法非常类似。union 维护足够的空间来置放多个数据成员中的“一种”,而不是为每一个数据成员配置空间,在union 中所有的数据成员共用一个空间,同一时间只能储存其中一个数据成员,所有的数据成员具有相同的起始地址。例子如下:union StateMachi...
分类:
编程语言 时间:
2014-07-16 20:53:25
阅读次数:
256
通过链表的一些题目,了解链表的基本操作实现,掌握递归算法的基本思路,掌握扎实的编程习惯。一、单链表基本操作1.1、单链表节点定义struct ListNode{ int value; ListNode *pNext;};1.2、在尾部插入节点void AddToTail(ListNode...
分类:
其他好文 时间:
2014-07-16 20:33:24
阅读次数:
150
黑马程序员--鄢振东----------------------ASP.Net+Unity3D游戏开发、.Net培训、期待与您交流! ----------------------在C#中,值类型有:int double decimal bool enum struct . 应用类型有:stri...
分类:
其他好文 时间:
2014-07-16 20:21:44
阅读次数:
248
CvMat的矩阵结构 1 typedef struct CvMat 2 { 3 //矩阵中元素的类型 4 int type; 5 //行数据长度 6 int step; 7 8 /* for internal use only */ 9 int* r...
分类:
其他好文 时间:
2014-07-16 20:17:24
阅读次数:
187
OpenCV的基本数据结构CvPoint:表示图像中的点CvPoint2D32f:二维空间中的点CvPoint3D32f:三维空间中的点这些都是结构体,并不是C++语言中的类,所以他们的构造函数就是简单的内联函数。 1 typedef struct CvPoint 2 { 3 int x; ...
分类:
其他好文 时间:
2014-07-16 20:17:07
阅读次数:
171
C语言链队列基本操作#include #include #include /* C语言链队列基本操作 2014年7月11日10:11:41*/typedef int qType;typedef struct node{ qType data; struct node *pNe...
分类:
编程语言 时间:
2014-07-16 19:48:26
阅读次数:
167
// FixedFuncEMU.fx// Copyright (c) 2005 Microsoft Corporation. All rights reserved.//struct VSSceneIn{ float3 pos : POSITION; //po...
分类:
其他好文 时间:
2014-07-16 19:38:19
阅读次数:
197
不知道为什么{3,4,1}就是通不过。/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), n...
分类:
其他好文 时间:
2014-07-13 12:25:11
阅读次数:
236
HtmlNodeType是一个枚举,用于说明一个节点的类型。源代码如下所示: public enum HtmlNodeType { Document = 0, Element = 1, Comment = 2, Text = 3, ...
分类:
Web程序 时间:
2014-07-13 11:23:58
阅读次数:
202