码迷,mamicode.com
首页 >  
搜索关键字:struct sk_buff    ( 19001个结果
【leetcode】Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他好文   时间:2014-07-22 23:16:35    阅读次数:373
【学习笔记】DirectX应用程序如何初始化
一、使用Windows API创建一个窗口二、创建一个Swap Chain(交换链) 这一步需要用到一个名为DXGI_SWAP_CHAIN_DESC的结构体,其详细定义如下:typedef struct DXGI_SWAP_CHAIN_DESC { DXGI_MODE_DESC Buffer...
分类:其他好文   时间:2014-07-22 23:13:54    阅读次数:520
PID算法(C语言)
/************ PID算法(C语言) ************/ #include #include struct _pid { int pv; /*integer that contains the process value*/ int sp; /*integ...
分类:编程语言   时间:2014-07-22 23:12:56    阅读次数:447
[leetcode]Binary Tree Maximum Path Sum
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-07-22 23:07:34    阅读次数:312
数据结构小结
1、顺序表顺序表的定义 #define MaxSize 100 ElemType Sqlist[MaxSize]; int len;相当于 int a[100];动态生成一张顺序表的方法可描述如下:#define MaxSize 100typedef struct{ElemType *elem...
分类:其他好文   时间:2014-07-22 23:06:15    阅读次数:277
半平面交 模板 poj 3335 poj 3130 poj 1474 判断半平面交是否为空集
半平面交模板const double pi= acos(-1.0);#define arc(x) (x / 180 * pi)const double EPS = 1e-8;const int Max_N = 105;struct Point{ double x,y; Point(){}...
分类:其他好文   时间:2014-04-30 17:00:01    阅读次数:621
windows下调用外部exe程序 SHELLEXECUTEINFO
本文主要介绍两种在windows下调用外部exe程序的方法:1、使用SHELLEXECUTEINFO 和ShellExecuteExSHELLEXECUTEINFO 结构体的定义如下: 1 typedef struct _SHELLEXECUTEINFO { 2 DWORD cbSize...
分类:Windows程序   时间:2014-04-30 16:47:47    阅读次数:620
背包问题
背包问题时间限制:3000ms | 内存限制:65535KB难度:3描述现在有很多物品(它们是可以分割的),我们知道它们每个物品的单位重量的价值v和重量w(1#include#include#include #include#includeusing namespace std;struct ba....
分类:其他好文   时间:2014-04-30 15:46:29    阅读次数:443
poj 1279 求半平面交的 面积
poj 1279 求半平面交的 面积题目来源:http://poj.org/problem?id=1279分析: 求半平面交的 面积代码如下:const double EPS = 1e-8;const int Max_N = 1505;struct Point{ double x,y; ...
分类:其他好文   时间:2014-04-29 16:35:46    阅读次数:499
【HDOJ】2157 How many ways??
矩阵乘法,用DP做各种wa,后来发现原因了。 1 #include 2 #include 3 4 typedef struct { 5 int map[20][20]; 6 } matrix_st; 7 8 matrix_st res, org; 9 int n, m;10 11 m...
分类:其他好文   时间:2014-04-29 11:26:46    阅读次数:418
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!