码迷,mamicode.com
首页 >  
搜索关键字:-__nscfnumber length    ( 19569个结果
数据结构6_顺序队列(循环队列)
本文实现了顺序队列,与链队列不同的是,顺序队列需要考虑一个问题,问题情况如下,解决办法:循环队列,当rear到分配的数组空间末尾时,转到数组头但是当q.rear==q.front时,又如何区分一种是空队列,一种是满队列的情况呢这里有两种方案本次代码实现了第一种方法,同时设置了一个技术变量length...
分类:其他好文   时间:2014-06-29 15:39:35    阅读次数:311
LeetCode Length of Last Word
class Solution {public: int lengthOfLastWord(const char *s) { if (s == NULL) return 0; int mlen = 0, len = 0; bool inword = fa...
分类:其他好文   时间:2014-06-29 14:13:37    阅读次数:229
prototype 和function关系等总结
1,function ,包括 arguments, caller,length,name ,prototype,__proto__,2,prototype,又分为constructor:function () {},__proto__:Object,3,__proto__从别的原型链继承过来可以直接...
分类:其他好文   时间:2014-06-29 13:59:16    阅读次数:327
20140527 希尔排序
#includevoid ShellSort(int *a,int length){ int jump=length; int temp=0; int change=1; while(jump>0) //while1 { jump=jump/2; change=1; /***************...
分类:其他好文   时间:2014-06-07 03:53:30    阅读次数:243
Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2014-06-04 21:38:05    阅读次数:233
安卓编程总结(1)
1、通过Toast类显示提示消息对话框Toast.makeText(Login.this,"pleaseinputtherightinfomation!",Toast.LENGTH_LONG).show()函数实现。2、Android中的String类与Qt中的QString类有一点不同,Andro...
分类:移动开发   时间:2014-05-30 03:17:01    阅读次数:287
oracle常用函数
一、字符函数字符函数是oracle中最常用的函数,我们来看看有哪些字符函数:lower(char):将字符串转化为小写的格式。upper(char):将字符串转化为大写的格式。length(char):返回字符串的长度。substr(char, m, n):截取字符串的子串,n代表取n个字符的意思,...
分类:数据库   时间:2014-05-29 21:54:37    阅读次数:428
让Windows Server 2008 + IIS 7+ ASP.NET 支持10万个同时请求
具体设置如下:1. 调整IIS 7应用程序池队列长度由原来的默认1000改为65535。IIS Manager > ApplicationPools > Advanced SettingsQueue Length : 655352. 调整IIS 7的appConcurrentRequestLimit...
分类:Windows程序   时间:2014-05-29 11:50:21    阅读次数:426
leetcode--Substring with Concatenation of All Words
You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati...
分类:其他好文   时间:2014-05-29 09:09:35    阅读次数:222
截取字段代码
直接在视图中开始加上如下代码:@helper Truncate(string input, int length) { if (input.Length ... }} @Truncate(item.Adress, 25) 的意思就是截取前25个字符!
分类:其他好文   时间:2014-05-28 17:04:27    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!