本人看到这篇非常不错的Lucene.Net入门基础教程,就转载分享一下给大家来学习,希望大家在工作实践中可以用到。 一.简单的例子 //索引Private void Index(){ IndexWriter writer = new IndexWriter(@"E:\Index", new St.....
分类:
Web程序 时间:
2014-08-19 23:52:45
阅读次数:
326
几次面试中遇到都有类似的问题,就是string str = "aa" + "bb" + "ccc";进行了几次内存分配?1 class Program2 {3 static void Main(string[] args)4 {5 st...
分类:
Web程序 时间:
2014-08-19 20:34:45
阅读次数:
196
过滤器,是在java web中,你传入的request,response提前过滤掉一些信息,或者提前设置一些参数,然后再传入servlet或者struts的 action进行业务逻辑,比如过滤掉非法url(不是login.do的地址请求,如果用户没有登陆都过滤掉),或者在传入servlet或者 st...
分类:
其他好文 时间:
2014-08-19 12:18:24
阅读次数:
209
整理了一些这段时间遇到的常见问题,希望对各位猿们有帮助。。。如果觉得有用就点个赞哦
问题一:
Error:(26, 9) Attribute application@icon value=(@drawable/logo) from AndroidManifest.xml:26:9
Error:(28, 9) Attribute application@theme value=(@st...
分类:
移动开发 时间:
2014-08-19 01:01:33
阅读次数:
294
关于访问修饰符一个重要的问题。 private是限制该对象无法在外部对象中访问,但是如果在自己的类中创建自己的对象或者使用自己的对象,那么还是可以使用被private修饰的成员 class A{public class StringValue { public static void main(St...
分类:
其他好文 时间:
2014-08-18 21:47:02
阅读次数:
228
1. 证明 $(10'$).证明: $\ra$: 由 $p_K(x)0,\st |t|0,\st |t|0&\ra p(ty)=t\cdot p(y)<\cfrac{p(y)}{|p(y)|+1}<1,\\ t<0&\ra p(ty)=-t\cdot p(-y)<\cfrac{p(-y)}{|p(-...
分类:
其他好文 时间:
2014-08-17 19:53:12
阅读次数:
190
Flashback Tips The following tips and restrictions apply to using flashback features. Flashback Tips – Performance For better performance, generate st...
分类:
数据库 时间:
2014-08-16 22:25:51
阅读次数:
347
首推方法: public void convertStr(String str){? ??????? //将String 对象转换为可改变的StringBuffer类对象? ??????? //然后调用StringBuffer类的reverse()方法实现反转? ??????? St...
分类:
编程语言 时间:
2014-08-15 08:19:07
阅读次数:
197
题意:。。。
策略:看着像贪心,感觉也是贪心。
很久之前做的,又做了一遍,好题。
代码:
#include
#include
int s[100005];
int main()
{
int t, i, j, l, st, en, n, v = 1;
scanf("%d", &t);
while(t --){
scanf("%d", &n);
for(i = 1; i <= n...
分类:
其他好文 时间:
2014-08-14 23:54:16
阅读次数:
201
http://acm.hdu.edu.cn/showproblem.php?pid=3486题意:n个人,有顺序,每个人有自己的能力值。你要从中选m个,分成每段长度[n/m]的小段,如果不能整除,多余的最后那段舍弃。每个小段取能力值最大的那个人。所取的人的能力值之和要大于k,问最少的m是多少。分析:...
分类:
其他好文 时间:
2014-08-14 20:04:59
阅读次数:
160