码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
Java 实现二分法查找算法
算法假如有一组数为3,12,24,36,55,68,75,88要查给定的值24.可设三个变量front,mid,end分别指向数据的上界,中间和下界,mid=(front+end)/2. 1.开始令front=0(指向3),end=7(指向88),则mid=3(指向36)。因为mid>x,故应在前....
分类:编程语言   时间:2015-01-30 15:20:38    阅读次数:114
前端知识查漏补缺篇(三)
(三)JavaScript1.JS Array--方法slice()和splice() arrayObj.slice(start,end); 此方法返回一个新的数组,包含从 start 到 end (不包括该元素)的 arrayObject 中的元素。 注意:此方法并不会修改数组,而是返回一个子.....
分类:其他好文   时间:2015-01-30 15:08:21    阅读次数:198
查看服务器IP连接数之主要命令(在服务器受攻击时用)
查看TCP几种状态的总数netstat -n | awk '/^tcp/ {++S[$NF]} END {fo (a in S). print a, S[a]}'按IP查看连接数排序netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq...
分类:其他好文   时间:2015-01-30 15:00:16    阅读次数:184
python文件和输入输出
文件和输入输出 __builtins__模块中和输入输出相关的函数: print(value,...[, sep=' ', end='\n', file=sys.stdout, flush=False]) file默认是打印到stdout,也可以重定向到别的地方 sep表示value之间插入的字符串,默认是一个空格 end表示最后一个value之后的内容,默认是换行 f...
分类:编程语言   时间:2015-01-30 09:05:22    阅读次数:214
Obj-C中的NSDate 、文件读写、序列化和反序列化
NSData *data = [NSData data]; //获取当前时间 NSLog ("Today is %@", data); NSArray *phrase; phrase = [NSArray arrayWithObjects: @“x”, @“y”, @“z”, @“end”]; [phrase writeToFile: @“/tmp/...
分类:其他好文   时间:2015-01-30 06:50:49    阅读次数:287
项目管理过程归纳
翻出以前的笔记,项目管理过程归纳: 五个项目管理过程组:(源于PDCA,记忆start,plan,do(action),check,end-->space) 启动过程组:定义并批准项目或阶段 规划过程组:定义和细化目标,规划最佳行动方案即从...
分类:其他好文   时间:2015-01-30 06:45:09    阅读次数:253
getchar()&putchar()&stdio.h
getchar():从stdio流中读字符。eof(end of file):文件结束符,在while循环中以eof作为文件结束标志。可以是文件(file),这种以EOF作为文件结束标志的文件必须是文本文件,在文本本件中,数据都是以字符的 ASCII代码值的形式存放,我们知道ASCII代码值的范围0...
分类:其他好文   时间:2015-01-30 01:23:10    阅读次数:162
用sed删除空行
用sed删除空行我的代码如下:class Song def initialize(name) @name = name end def tell puts @name endendclass ZhouSong < Song def initialize(name,artist) super(n...
分类:其他好文   时间:2015-01-29 19:04:12    阅读次数:148
lua拆分字符串实现及lua源码查看
lua字符串拆分实现 --字符串分割 function splitStr(content, token) if not content or not token then return end local strArray = {} local i = 1 local contentLen = string.len(content) while true...
分类:其他好文   时间:2015-01-29 16:02:11    阅读次数:175
matlab路径操作实战(真正实现data和code分离)
假设data文件夹和work文件夹并列,我的所有数据存放于data文件夹里面,我的代码存放于code文件夹里面 1、在code文件夹里面写代码获取data文件夹下所有文件 mainpath=mfilename('fullpath'); index=strfind(mainpath,'\'); mainpath=[mainpath(1:index(end-1)) 'data\']...
分类:其他好文   时间:2015-01-29 14:46:57    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!