04 2010 档案
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;publicclassNode{publicstringName...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicstaticvoidQuickSort(int[]data,intlow,inthigh){inti=low;intj=high;inttmp=data[low];while(low<...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//简单选择publicstaticvoidSimpleSelectSort(int[]data){inttemp=0;intt=0;for(inti=0;i<data.Length-1;i++...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicclassMyClass{publicstaticvoidMain(){int[]data={1,2...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicclassMyClass{publicstaticvoidMain(){int[]data={2,8...
阅读全文
摘要:1 算一个数组的所有组合方式2直接插入算法 3冒泡算法 4简单选择 5快速排序
阅读全文
摘要:目的:给一个数字数组,算出这个数组的所有组合方式。 例子:比如给一个数组为{23,44,56}(这里为了能列举出所有的组合方式,所以选择一个长度较小的数组),那么我们所要得到的结果为6组数:{23,44,56},{23,56,44},{44,23,56},{44,56,23},{56,23,44},{56,44,23}。这三个数所能组成的数组方式不会再有第七种。 不考虑的问题:本文没有考虑类似...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;publicclassDocument{publicstring...
阅读全文
摘要:2010-4-19对我来说是一次自我挑战的培训自己表达能力心里很清楚,的确很差劲,特别人多的时候,说话更是模糊这次,我大声的演讲,完全忘记自己是在培训别人,而只是想着如何把自己做的这个事情做好,在一直尽力作。结果,赢得了掌声!!很感谢自己!!相信自己,别人能做到的自己努力同样也可以做到,并且会做的很好!!----记录一次自己成功的经历
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;abstractclassAction{publicabstra...
阅读全文
摘要:面试题汇总12010-4-12 面试题1 22010-4-12 面试题2
阅读全文
摘要:有两个有序整数数组,例如{1,3,5,7,9}和{2,4,6,7,8},设计一个函数使两个数组合并,并且剔除掉两个数组里重复的元素。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collection...
阅读全文
摘要:给定一个整数数组,例如{2,4,5,6,7,8}和一个数字,例如10,请设计一个函数找出两个元素,并且使这两个数的和为给定数字,并答应出来。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collec...
阅读全文
摘要:1 类适配器代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;interfaceItest{voidNewRequest();}classMethod{publi...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicinterfaceILog{voidLog(stringstr);}publicclassTxtLo...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;publicabstractclassGraphics{publ...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//Decoratorpattern--StructuralexampleusingSystem;//"Component"abstractclassComponent{//Methodsabstra...
阅读全文
摘要:原码、反码、补码什么意思?有什么用? 假设有一 int 类型的数,值为5,那么,我们知道它在计算机中表示为: 00000000 00000000 00000000 00000101 5转换成二制是101,不过int类型的数占用4字节(32位),所以前面填了一堆0。 现在想知道 ... 假设有一 int 类型的数,值为5,那么,我们知道它在计算机中表示为: 00000000 000000...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;internalclassEngine{publicstringEngineWork(){return"BMW'...
阅读全文
摘要:[代码]代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;classFlyweightFactory{privat...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;///<summary>///接口类///</summary>interfaceIPro...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;///<summary>///实体类///</summary>publicclassMe...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicclassProduct{}publicabstractclassBuilder{publicabs...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicclassCalc{publicvirtualdoubleDoDalc(doublep1,doubl...
阅读全文
摘要:一 创建型结构模式1 单件模式2 抽象工厂3 工厂模式 4 简单工厂 5建造者模式 6原型模式 二 结构型设计模式1代理模式 2享元模式 3外观模式 4装饰模式 5组合模式 6桥接模式 7适配器模式 三 行为型设计模式1访问者模式 2命令模式 3迭代模式 4 模板方法
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;///<summary>///定义抽象类///</summary>publicabstr...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;publicclassConstant{publicstaticdoubleBase_salary=4000;}...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;///<summary>///单件模式(线程安全的单件(双重锁定方法2:线程安全而且性能优越))//...
阅读全文