IplImage 结构解读:typedef struct _IplImage{int nSize;/* IplImage大小 */int ID;/* 版本 (=0)*/int nChannels;/* 大多数OPENCV函数支持1,2,3 或 4 个通道 */int alphaChannel;/* ...
分类:
其他好文 时间:
2014-06-26 21:37:24
阅读次数:
175
#include#includetypedef char* ElementType;typedef unsigned int Index;#define MinTableSize 15struct ListNode;typedef struct ListNode *Position;struct H...
分类:
其他好文 时间:
2014-06-26 18:04:01
阅读次数:
155
#include#include"fatal.h"typedef char* ElementType;typedef unsigned int Index;typedef Index Position;struct HashTbl;typedef struct HashTbl *HashTable;...
分类:
其他好文 时间:
2014-06-26 17:19:52
阅读次数:
150
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;typedef struct{ int weight, parent, lchild, rchild;}HTNode,*Huff...
分类:
其他好文 时间:
2014-06-26 16:54:53
阅读次数:
223
Linux是一个多用户,多任务的系统,可以同时运行多个用户的多个程序,就必然会产生很多的进程,而每个进程会有不同的状态。Linux进程状态:R (TASK_RUNNING),可执行状态。只有在该状态的进程才可能在CPU上运行。而同一时刻可能有多个进程处于可执行状态,这些进程的task_struct结...
分类:
Web程序 时间:
2014-06-25 16:04:52
阅读次数:
384
#include#include "fatal.h"struct AvlNode;typedef struct AvlNode *Position;typedef struct AvlNode *AvlTree;typedef int ElementType ;AvlTree MakeEmpty(A...
分类:
编程语言 时间:
2014-06-25 13:23:40
阅读次数:
267
#include#include "fatal.h"struct TreeNode;typedef struct TreeNode *Position;typedef struct TreeNode *SearchTree;typedef int ElementType;SearchTree Mak...
分类:
编程语言 时间:
2014-06-25 12:53:17
阅读次数:
334
#include #include #include #include using namespace std; typedef struct Node { struct Node *next[10]; int flag; }Node,*Tree; int flag1; void Cre...
分类:
其他好文 时间:
2014-06-25 11:27:43
阅读次数:
154
attribute method:
#include
struct packed
{
char a;
int b;
} __attribute__((packed));
struct not_packed
{
char a;
int b;
};
int main(void)
{
printf("Packed: %zu\n", sizeof(...
分类:
其他好文 时间:
2014-06-25 07:29:49
阅读次数:
155
当Nginx检测到配置文件中存在配置块http{}时,会建立一个ngx_http_conf_ctx_t结构体,该结构体定义如下:
typedef struct {
void **main_conf; // 每个指针元素指向所有由HTTP模块的create_main_conf方法产生的结构体
void **srv_conf; // 每个指针...
分类:
其他好文 时间:
2014-06-25 06:57:04
阅读次数:
233