mount()的最后一个参数data是传给文件系统解释的,有兴趣可以跟踪一下系统调用mount的流程(以vfat为例):sys_mount()-->do_mount()-->do_add_mount()-->do_kern_mount()-->do_kern_mount()-->get_sb_bde...
分类:
其他好文 时间:
2014-07-24 10:18:13
阅读次数:
281
题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->....
分类:
编程语言 时间:
2014-07-24 09:49:43
阅读次数:
204
英语字根- 1,ag=do,act 做,动- 2,agri=field 田地,农田(agri也做agro,agr)- 3,ann=year年- 4,audi=hear听- 5,bell=war战争- 6,brev=short短- ...
分类:
其他好文 时间:
2014-07-24 09:48:43
阅读次数:
386
1、关于默认搜索域
If you are using the Lucene query parser, queries that don't specify a field name will use the defaultSearchField. The DisMax and Extended DisMax query parsers do not use this value.
...
分类:
其他好文 时间:
2014-07-23 22:38:28
阅读次数:
279
http://acm.njupt.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1028Digital Roots时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:493 ...
分类:
其他好文 时间:
2014-07-23 22:30:07
阅读次数:
262
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4736解题思路:在treap里面加上一个num域,用来表示这个节点重复数的个数就行!WA了很多次,发现自己在处理负数的时候有点问题了。然后拿cxlove 的SBT代码比对...
分类:
其他好文 时间:
2014-07-23 22:18:07
阅读次数:
361
struts思路: 1.struts使用的三板斧ActionForm、DispatchAction、ActionMapping 2.主要关注点:Form、Action、Forward 3.页面如何发送请求参数,后台如何截取.do请求,如何将参数组装成Form,在Action中如何操作F...
分类:
其他好文 时间:
2014-07-23 21:35:05
阅读次数:
263
http://acm.njupt.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1026五位以内的对称素数时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:1857 测试通...
分类:
其他好文 时间:
2014-07-23 20:50:35
阅读次数:
218
合并排序,将两个已经排序的数组合并成一个数组,其中一个数组能容下两个数组的所有元素并排序一般的思路都是创建一个更大数组C,刚好容纳两个数组的元素,先是一个while循环比较,将其中一个数组A比较完成,将另一个数组B中所有的小于前一个数组A的数及A中所有的数按顺序存入C中,再将剩下的数存入C中,空间复...
分类:
其他好文 时间:
2014-07-23 20:48:35
阅读次数:
240
1 //经纬度转Wev墨卡托 2 dvec3 CMathEngine::lonLat2WebMercator(dvec3 lonLat) 3 { 4 dvec3 mercator; 5 double x = lonLat.x *20037508.34/180; 6 do...
分类:
Web程序 时间:
2014-07-23 20:38:25
阅读次数:
217