本文实现了顺序队列,与链队列不同的是,顺序队列需要考虑一个问题,问题情况如下,解决办法:循环队列,当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
//导出按钮protected void btn_Export_Click(object
sender, EventArgs e) { Model.article art = new BLL.Common().GetModel(this.id);
WriteHtml(art.content);//a...
分类:
其他好文 时间:
2014-06-07 03:04:09
阅读次数:
299
/// /// /// /// 打印人员备案表 /// /// /// /// public bool
PrintCGRYBA(string UPT_ID, out stri...
分类:
其他好文 时间:
2014-05-29 00:34:26
阅读次数:
468
前言
本文大部分内容来自http://www.codeproject.com/Articles/710747/First-thoughts-on-Spire-Doc-for-NET。
针对我个人来说,对办公自动化并没有多少需求。但作为一个开发人员,如果有需求的时候最好有一个library工具...
分类:
Web程序 时间:
2014-05-29 00:06:46
阅读次数:
475
using System;using System.Collections.Generic;using
System.ComponentModel;using System.Data;using System.Drawing;using
System.Linq;using System.Text;u...
分类:
Web程序 时间:
2014-05-28 18:29:46
阅读次数:
378
直接在视图中开始加上如下代码:@helper Truncate(string input,
int length) { if (input.Length ... }} @Truncate(item.Adress, 25) 的意思就是截取前25个字符!
分类:
其他好文 时间:
2014-05-28 17:04:27
阅读次数:
233
据说VS2005里即提供了测试功能,可是对于像我或者我们这样的开发人或团队真还没有进化到用测试这块。一直以来都是手工测试或等到用户发现问题。今天在网上找了一个介绍单元测试的WORD文档,按里面说的做了一下,现将过程记录如下。(非常简单的例子,希望大家不要扔鸡蛋,唉·#%·#¥·#·#¥·#¥)1、准...
分类:
其他好文 时间:
2014-05-28 11:14:26
阅读次数:
250