码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
Lucene .NET 全文检索
近期做项目中有用到过Lucene,那个模块是由一位前端大神负责的,空闲时间我也做了个关于Lucene做全文检索的Demo,记录下来,方便以后学习。 关于Lucene的原理,网上有长篇大论的文章,有兴趣的话可以去阅读,再次我就直奔主题,在代码中分析其原理。 1、创建索引(此处我用的是盘古分词) 注:在后台代码的第一行上加上 #define notes这样一行代码,目的是可以用外侧代码的#if,...
分类:Web程序   时间:2014-07-12 23:52:43    阅读次数:509
C 动态链表的建立,输出,删除,插入
动态链表的建立,输出,删除,插入 #include #include #include #define NULL 0 #define LEN sizeof(struct student) struct student {     long num;     float score;     struct student*next; };  int n;/*n为全...
分类:其他好文   时间:2014-07-12 23:23:33    阅读次数:183
跟我一起学extjs5(15--模块字段和Grid列的定义[2])
跟我一起学extjs5(15--模块字段和Grid列的定义[2])         model和columns生成好了,下面要修改一下Module.js和Grid.js中的代码,使其能够协同工作。 /** * 一个模块的主控界面的容器,用来安放各个模块控件以及协调他们之间的关系 */ Ext.define('app.view.module.Module', { extend ...
分类:Web程序   时间:2014-07-12 18:19:44    阅读次数:289
OpenCV-PS 图层混合算法(一)
定义  #ifndef PS_ALGORITHM_H_INCLUDED #define PS_ALGORITHM_H_INCLUDED #include #include #include #include "Public_Function.h" #include "cv.h" #include "highgui.h" #include "cxmat.hpp" #incl...
分类:其他好文   时间:2014-07-12 18:01:00    阅读次数:179
hdu4570
1 #include 2 #define N 65 3 using namespace std; 4 5 const long long INF = 1LL>_;12 while(_--)13 {14 int n,i,j,k;15 cin>>n;...
分类:其他好文   时间:2014-07-12 15:03:45    阅读次数:198
hdu 2492 Ping pong 线段树
给定一个序列,求出一共有多少个三元组(ai,aj,ak),使得i#include #define maxn 100200#define N 20100int sum[maxn*4];int lmax[N],lmin[N],rmax[N],rmin[N];int ans[N];void pushup(...
分类:其他好文   时间:2014-07-12 14:39:08    阅读次数:174
poj 3522 Slim Span 最大边减最小边最小的生成树
枚举最小边进行kruskal。#include #include using namespace std;#define maxn 120#define maxm 10000struct edge{ int u,v,w;}e[maxm];int p[maxn],n,m;int find(int...
分类:其他好文   时间:2014-07-12 14:37:52    阅读次数:250
poj 2236 Wireless Network 并查集
#include #include #include #define maxn 1220double x[maxn],y[maxn],d;bool vis[maxn];int p[maxn];int n;double dist(int i,int j){ return fabs( (x[i]-...
分类:Web程序   时间:2014-07-12 14:36:39    阅读次数:224
hdu 2489 Minimal Ratio Tree 枚举+最小生成树
点的总数很小,直接枚举就好。#include #include #define N 20#define inf 1000000int mk[N],n,k,ans[N];double low[N],val[N];double map[N][N],MIN;double prim(){ int i,...
分类:其他好文   时间:2014-07-12 14:33:11    阅读次数:174
hdu 2487 Ugly Windows 模拟
#include #include #include #include using namespace std;char map[110][110];int n,m;#define inf 100000struct node{ int x,y;};vector nn;int main(){ ...
分类:Windows程序   时间:2014-07-12 14:31:49    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!