快速排序基本思想:选取一个枢轴元素(图简单可选第一个),通过对序列一次遍历(中间涉及到数的交换),将该枢轴放置到序列合适位置,保证其左边数都比它小,右边数都比它大,然后利用递归思想对其左右两个子序列进行同样排序。快熟排序的基本实现过程:将枢轴元素key备份,序列头尾各设置一个游标——i和j,尾部.....
分类:
其他好文 时间:
2014-05-09 13:01:56
阅读次数:
360
package com.lj.utils { import
mx.controls.DateField; import mx.controls.dataGridClasses.DataGridColumn; import
mx.formatters.DateF...
分类:
其他好文 时间:
2014-05-09 13:02:25
阅读次数:
402
如果还想在测试这条路上继续走下去的话,那么下面这些东西就是我们必须去掌握的,至少你还不想止步于简单的黑盒测试~~其实,一直想去接触Linux下的应用测试,这样能学到东西会很多,而且会非常的受用。之前听小布老师讲,如果你想在IT技术上长期发展下去,那么你就大胆拥抱Linux吧,因为在这里你能学到东西远...
分类:
其他好文 时间:
2014-05-09 13:00:26
阅读次数:
303
循环引用:引用计数是一种便利的内存管理机制,但它有一个很大的缺点,那就是不能管理循环引用的对象。一个简单的例子如下:#include#include#include#includeclassparent;classchildren;typedefboost::shared_ptr
parent_pt...
分类:
其他好文 时间:
2014-05-09 13:01:22
阅读次数:
326
eval-buffer用来执行.emacs不要再重启了,或cxce执行光标前的一行eval-regionload-file
~/.emacsgoto-lineglobal-set-key定义快捷键或者ch+kC-down-mouse-1单击C-mouse-1双击
分类:
其他好文 时间:
2014-05-09 12:59:03
阅读次数:
221
直接插入排序对待排数量较少且基本有序的序列,其执行效率是非常高的,希尔排序正是利用了这点,将一个无序的序列拆分成几个子组,然后对几个子组分别进行插入排序。注意,这儿的分组并不是简单的{a1,a2,a3,b1,b2,b3,c1,c2,c3}(相同字母为一组),而是进行{a1,b1,c1,a2,b2.....
分类:
其他好文 时间:
2014-05-09 12:59:34
阅读次数:
280
类型修饰符const不仅可以说明成员函数,也可是说明数据成员由于const类型对象必须被初始化,并且不能更新,因此,子啊类中说明了const数据成员时,只能通过成员初始化列表的方式来生成构造函数对数据成员的初始化。//A.h#pragma
onceclass A{public: A(int i...
分类:
其他好文 时间:
2014-05-09 13:00:00
阅读次数:
254
With the shortage of natural sand resources
increasingly tense, artificial sand began to increasingly replace natural sand
for the construction of the...
分类:
其他好文 时间:
2014-05-09 12:57:36
阅读次数:
272
筛选出 2012-2-1 的数据private DataTable GetData() {
DataTable dt = new DataTable(); dt.Columns.Add("Id", typeof(int)); ...
分类:
其他好文 时间:
2014-05-09 12:58:02
阅读次数:
259
最后,我们要完成最后一个业务需求:允许管理者对员工信息做出数据分析。ES有个功能叫aggregations,这个功能可以对数据进行先进的统计和分析,就像是SQL中的GROUP
BY,只不过是功能更强大。例如:要查出员工中最流行的兴趣名称,GET /megacorp/employee/_search{...
分类:
其他好文 时间:
2014-05-09 12:58:29
阅读次数:
291
/*日期转YYYYMMDD*/formDate.fullYear+""+(formDate.month
_fromYear){manyAllDayNum = Number(alreadyOverDay(fromFormatDayStr)[1]) +
Number(alreadyOverDay(toF...
分类:
其他好文 时间:
2014-05-09 12:56:06
阅读次数:
288
刚才有看到一个问题http://bbs.csdn.net/topics/390781072。是在DataTable获取某列最小值,但是在动态生生DataTable时,列名有遇上特特殊字符"["和"]"。因此在执行DataTable的computer方法,会出现异常,找不到此列。其实最初的数据源的字段...
分类:
其他好文 时间:
2014-05-09 12:55:37
阅读次数:
301
UIScrollView中的手势UIScrollView自带了两个手势,分别为:UIPanGestureRecognizerUIPinchGestureRecognizer他们都是readonly的.监听UIPanGestureRecognizer手势是UIPanGestureRecognizer的...
分类:
其他好文 时间:
2014-05-09 12:55:04
阅读次数:
344
A Funny GameTime Limit:1000MSMemory
Limit:65536KTotal Submissions:3861Accepted:2311DescriptionAlice and Bob decide
to play a funny game. At the beginn...
分类:
其他好文 时间:
2014-05-09 12:53:42
阅读次数:
265
It occurred to me suddenly that I wanted to program the our camera sensor for PC desktop, just like the one purchased from shop, which can make the video recording. Finally although the result seemed
...
分类:
其他好文 时间:
2014-05-09 14:58:02
阅读次数:
373
function JudgeParaRegular(intID)
if intID
JudgeParaRegular=intId
else
Response.Write "输入错误!"
Response.End
end if
end function
intFileSize=JudgeParaRegular(Request.QueryString("intFileSi...
分类:
其他好文 时间:
2014-05-09 14:39:32
阅读次数:
299
设计模式--装饰模式...
分类:
其他好文 时间:
2014-05-09 13:56:56
阅读次数:
256
ip范围限制函数
大家如果还有好的建议算法,就联系我!!:)
'******************************
'Function CheckIp(cInput_Ip,cBound_Ip)
'Created by qqdao, qqdao@263.net 2001/11/28
'说明:首先需要根据;号循环,然后判断是否含有"-",如果有则进行拆分处理,最后判断是否在范围内
...
分类:
其他好文 时间:
2014-05-09 15:18:32
阅读次数:
269
常见 Datagrid 错误
摘要:学习如何避免在使用 ASP.NET Datagrid 控件进行开发时可能发生的一些常见错误(本文包含一些指向英文站点的链接)。
Datagrid 控件是 Microsoft® ASP.NET 中功能最强、用途最广的 Web 控件之一,这一点已经得到了 ASP.NET 权威人士的认同。虽然 Datagrid 控件易于使用,但同样易于给使用者带来麻烦。以...
分类:
其他好文 时间:
2014-05-09 15:09:18
阅读次数:
279
题目:
Description
People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very n...
分类:
其他好文 时间:
2014-05-09 15:00:55
阅读次数:
345