struct 
sk_buff可能是linux网络代码中最重要的数据结构,它表示接收或发送数据包的包头信息,并包含很多成员变量供网络代码中的各子系统使用。 
这个结构被网络的不同层(MAC或者其他二层链路协议,三层的IP,四层的TCP或UDP等)使用,并且其中的成员变量在结构从一层向另一层传递时改变.....
                            
                            
                                分类:
其他好文   时间:
2014-05-17 13:05:23   
                                阅读次数:
868
                             
                    
                        
                            
                            
                                亲测win7下可用,win8下由于系统不支持Aero效果,所以效果不是半透明的。代码:博客园插入不了代码了。。。。。public partial class 
Form1 : Form { int en; public struct MARGINS { ...
                            
                            
                         
                    
                        
                            
                            
                                1 #include 2 #include 3 #include 4 #include 5 using 
namespace std; 6 7 struct point{ 8 int x,y; 9 };10 11 struct line{12 point 
a,b;13 };14...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 20:29:09   
                                阅读次数:
292
                             
                    
                        
                            
                            
                                1 /** 2 判断直线位置关系 3 **/ 4 #include 5 #include 6 
#include 7 using namespace std; 8 struct point { 9 double x,y;10 point(double 
x=0,double y=...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 20:28:07   
                                阅读次数:
254
                             
                    
                        
                            
                            
                                1 #include 2 #include 3 #include 4 #include 5 
#include 6 using namespace std; 7 struct point { 8 double x,y; 9 };10 point 
be[100005],en[100...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 20:03:30   
                                阅读次数:
288
                             
                    
                        
                            
                            
                                1 /** 2 注意: 千万得小心。。就因为一个分号,调了一个晚上。。。 3 **/ 4 
#include 5 #include 6 using namespace std; 7 struct point { 8 int x,y; 9 }; 10 
11 struct...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 19:43:02   
                                阅读次数:
275
                             
                    
                        
                            
                            
                                /*选票系统,输入每个候选人的得票结果(采用单链表存放选票,候选人编号依次123...N,且每张选票只选一人)。*//* 
单链表存放选票,每个节点的data域存放该选票所选的候选人,用一个数组a统计得票结果。 */ typedef int Elemtype;typedef 
struct linkno...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 16:50:39   
                                阅读次数:
377
                             
                    
                        
                            
                            
                                /*
ID:kevin_s1
PROG:milk
LANG:C++
*/
#include 
#include 
#include 
#include 
#include 
#define MAXN 5001
using namespace std;
int N,M;
struct farmer{
	int Pi;
	int Ai;
}farmers[MAXN];
int cmp(farm...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 11:56:20   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                中心节点就是树的中心,2遍dfs求到树的直径,而中心一定在直径上,顺着直径找到中心就够了。
然后可以一遍树形DP找到最小值或者二分+判断是否访问到叶子节点。
#include 
#include
#include
#include
using namespace std;
struct node
{
    int next;
    int power;
    int length...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 11:28:38   
                                阅读次数:
306
                             
                    
                        
                            
                            
                                1 #include 2 #include 3 4 typedef struct node { 5 
int data; 6 node * next; 7 }Node, *pNode; 8 9 pNode CreateList() {10 pNode head, 
p1...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 10:46:30   
                                阅读次数:
297