---恢复内容开始---直接上代码internal static class LibVlcAPI { 
internal struct PointerToArrayOfPointerHelper { [MarshalAs(UnmanagedTyp...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 10:26:29   
                                阅读次数:
317
                             
                    
                        
                            
                            
                                简单最小生成树,继续我的kruskal#include#include#include#includeusing namespace std;const int 
MAX=1000000;struct node{ int left,right,cost;}road[MAX];bool cmp(n...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 09:28:42   
                                阅读次数:
333
                             
                    
                        
                            
                            
                                ---恢复内容开始---直接上代码internal static class LibVlcAPI { 
internal struct PointerToArrayOfPointerHelper { [MarshalAs(UnmanagedTyp...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 07:20:23   
                                阅读次数:
427
                             
                    
                        
                            
                            
                                ---恢复内容开始---直接上代码internal static class LibVlcAPI { 
internal struct PointerToArrayOfPointerHelper { [MarshalAs(UnmanagedTyp...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 05:39:37   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                用c语言实现
#include 
#include 
#include 
using namespace std;
typedef struct node
{
    char x;
    struct node *next;
}chan;
chan *root = new chan;
char a[100010];
int main()
{
    while(scanf("%...
                            
                            
                                分类:
编程语言   时间:
2014-04-29 13:47:20   
                                阅读次数:
358
                             
                    
                        
                            
                            
                                以前的代码太挫了,重新整理dlx,学习HH把精确覆盖,重复覆盖整合在一起。
代码:
struct DLX{
    const static int maxn=20010;
    #define FF(i,A,s) for(int i = A[s];i != s;i = A[i])
    int L[maxn],R[maxn],U[maxn],D[maxn];
    int size,c...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:43:20   
                                阅读次数:
370
                             
                    
                        
                            
                            
                                定义了一个elevator_noop的调度器类型: 
static struct elevator_type elevator_noop = {
	.ops = {
		.elevator_merge_req_fn		= noop_merged_requests,//查询一个request,用于将bio并入
		.elevator_dispatch_fn		= noop_dispatch,/...
                            
                            
                                分类:
系统相关   时间:
2014-04-29 13:33:20   
                                阅读次数:
830
                             
                    
                        
                            
                            
                                题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1588
#include
#include
#include
#include
#include
using namespace std;
#define N 10050
#define M 200005
int n,m;//n个点 m条边
struct Edge{...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:25:21   
                                阅读次数:
383
                             
                    
                        
                            
                            
                                floyd求最短路。
注意图是有向图。。。
#include
#include
#include
using namespace std;
struct node
{
    int x,y,id;
}edge[205];
int dis[205][205];
int main()
{
    int c,T,n,a,b,op;
    while(scanf("%d",&T...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:21:23   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                set容器是以红黑树容器为基础实现的,在其基础上稍加改变接口即可
#ifndef MY_SET_H_INCLUDED
#define MY_SET_H_INCLUDED
#include"my_rb_tree.h"
namespace juine
{
    template
    struct identity
    {
        const T& operator()(cons...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:16:20   
                                阅读次数:
376