码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
netstat tcp。连接中各种状态说明
通过tcp三次握手的情况来说明#netstat -an|awk '/^tcp/ {++s[$NF]} END{for (a in s) print a,s[a]}'established是表示tcp三次握手成功后的工作状态,可以理解为已经成功进行访问了listen是表示在侦听,没有客户连接进来syn...
分类:Web程序   时间:2014-08-01 13:02:41    阅读次数:222
delphi 立即显示提示
procedure TForm1.FormCreate(Sender: TObject); begin Application.HintPause:=0;//立即显示 Application.hinthidepause:=100000;//if not leave then 显示100秒end; 来...
分类:其他好文   时间:2014-08-01 12:55:11    阅读次数:180
delphi 添加节点
//在选中的节点中上添加1个节点 procedureTForm1.Button1Click(Sender:TObject); begin withTreeView1do begin Items.AddChild(Selected,'aaa'); end; end; //添加节点 procedureT...
分类:其他好文   时间:2014-08-01 12:47:41    阅读次数:226
hdu1598--结题报告
题解:对于输入的边,我们首先按照速度从大到小排序,然后对于每一次询问,st   end 两个城市,我们暴力枚举, for(int i = 0; i 上马: //187MS 300K #include #include using namespace std; #define MAX 205 #define INF 1<<30 int N,M,Q; struct Edge { ...
分类:其他好文   时间:2014-08-01 10:53:31    阅读次数:204
2014-8-1
今天在写存储过程的时候需要判断两个日期是否是同一天,就用到了数据库中的一个方法datediff(),这个方法主要是求两个日期之间的差值,可以是天、月、年等,参数主要有三个,分别是datediff(datepart,start,end),datepart 主要是设置你所求的是天的差值还是月的差值,da...
分类:其他好文   时间:2014-08-01 10:40:51    阅读次数:183
二分查找
二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。 假设其数组长度为n,其算法复杂度为o(log(n)) 代码: #include using namespace std; bool BinarySearch(int data[],int start, int end, int number){ while(start...
分类:其他好文   时间:2014-08-01 09:14:51    阅读次数:228
求最小的k个数
和快速排序有点类似,利用快速排序的划分算法, 划分算法见http://blog.csdn.net/buyingfei8888/article/details/8997803 根据int partition(int number[],int start,int end);返回值为数组下标,大小为index,index左边值均小于number【index】,右边均大于number【index】,若...
分类:其他好文   时间:2014-07-31 17:05:16    阅读次数:191
poj 2513 -- Colored Sticks
Colored SticksTime Limit: 5000MSMemory Limit: 128000KTotal Submissions: 30037Accepted: 7924DescriptionYou are given a bunch of wooden sticks. Each end...
分类:其他好文   时间:2014-07-31 16:42:16    阅读次数:173
Bootstrap页面布局8 - BS常用标签与样式
常用的Css文字标签 一、 文字段落Start,重要的文字,倾斜的文字用来提示,cms是"ContentManagementSystem"的简称,文字段落End 说明: 标签 作用 ...
分类:其他好文   时间:2014-07-31 16:07:26    阅读次数:184
【足迹C++primer】59、模板左值右值的转换
模板左值右值的转换 /** * 功能:模板左值右值的转换 * 时间:2014年7月27日08:18:06 * 作者:cutter_point */ #include #include #include using namespace std; template auto fcn(It beg, It end) -> typename remove_reference::ty...
分类:编程语言   时间:2014-07-31 09:55:27    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!