本文实现了顺序队列,与链队列不同的是,顺序队列需要考虑一个问题,问题情况如下,解决办法:循环队列,当rear到分配的数组空间末尾时,转到数组头但是当q.rear==q.front时,又如何区分一种是空队列,一种是满队列的情况呢这里有两种方案本次代码实现了第一种方法,同时设置了一个技术变量length...
分类:
其他好文 时间:
2014-06-29 15:39:35
阅读次数:
311
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
1,function ,包括 arguments, caller,length,name
,prototype,__proto__,2,prototype,又分为constructor:function ()
{},__proto__:Object,3,__proto__从别的原型链继承过来可以直接...
分类:
其他好文 时间:
2014-06-29 13:59:16
阅读次数:
327
#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
具体设置如下:1. 调整IIS 7应用程序池队列长度由原来的默认1000改为65535。IIS
Manager > ApplicationPools > Advanced SettingsQueue Length : 655352. 调整IIS
7的appConcurrentRequestLimit...
直接在视图中开始加上如下代码:@helper Truncate(string input,
int length) { if (input.Length ... }} @Truncate(item.Adress, 25) 的意思就是截取前25个字符!
分类:
其他好文 时间:
2014-05-28 17:04:27
阅读次数:
233
public class BubbleSortLib { public int[]
Sort(int[] arr) { for (int outer = arr.Length - 1; outer...
分类:
其他好文 时间:
2014-05-28 03:12:37
阅读次数:
223
LENGTH()函数是比较简单同时也是非常有用的一个函数,在此小记一下,加深印象以备后用!1:先上实验的例子——我新建了一张Student表,插入了若干条测试数据,如下图所示:2:实验LENGTH()函数3:实验LENGTHB()函数解释一:此处的LENGTH()函数用于获取对应字段的字符长度解释二...
分类:
数据库 时间:
2014-05-28 02:11:55
阅读次数:
528
[1,2,3].length可以得到 3,"123".length 也可以得到
3,这个略懂js的都知道。但是
eval.length,RegExp.length,"".toString.length,1..toString.length会得到什么呢?分别得到
1,2,0,1,这些数字代表什么呢?这...
分类:
Web程序 时间:
2014-05-28 00:43:00
阅读次数:
281
1、冒泡排序(自己写) #include#define swap(x,y) x=x+y; y=x-y;
x=x-y;void maopao(int *a,int length)
//每次把最大的元素冒泡到数组末尾,从小到大的顺序,length是数组长度,a是数组名,作为形参之后,数组名退化为指针{ ...
分类:
其他好文 时间:
2014-05-27 23:59:27
阅读次数:
434