码迷,mamicode.com
首页 >  
搜索关键字:collections    ( 9831个结果
Boyer-Moore (C#)
调用ShowExample方法即可查看结果使用Debug配置编译可以查看详细匹配过程using System;using System.Collections.Generic;namespace Dijistra{ /// /// An implemention of Boyer-Mo...
分类:其他好文   时间:2014-06-28 23:54:57    阅读次数:278
MVC的控制器的激活过程,我们从MvcHandler开始讲,前面的事情以后再讲
一、从MvcHandler开始(不要觉得是代码,让你看懂才是最重要的)using Microsoft.Web.Infrastructure.DynamicValidationHelper;using System;using System.Collections.Generic;using Syst...
分类:Web程序   时间:2014-06-28 22:46:48    阅读次数:322
Collections.binarySearch
childIDs 数组cid 要插入的对象int index = Collections.binarySearch(childIDs, cid);if (index < 0) {childIDs.insertElementAt(cid, (index + 1) * -1);stack.push(ci...
分类:其他好文   时间:2014-06-18 10:28:08    阅读次数:206
多态override
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Sln0405 7 { 8 class Program 9 {1...
分类:其他好文   时间:2014-06-18 08:39:47    阅读次数:159
数据结构归并排序实现
package com.he.list; public class Collections { public static ArrayList mergeList(ArrayList l1, ArrayList l2) { ArrayList l = new ArrayList(); int l1_length = l1.getLength(); int l2_length = ...
分类:其他好文   时间:2014-06-17 22:53:46    阅读次数:247
扎金花大小比较算法(Java版)
扎金花大小比较算法,实现算法特点: 1)采用面向对象方式实现,分别构造牌面值的对象(枚举)、牌的花色对象(枚举)、玩家三张牌的类型(枚举,如豹子、同花顺等)、一张扑克牌对应的对象(一张牌有一个牌面值属性、一个花色属性)、玩家对象(玩家有3张扑克牌,牌的类型属性); 2)主要是通过Java Comparable 接口的compareTo实现比较功能,很方便对玩家手中的牌进行排序(调用Collections.sort方法实现),同事避免了很多if else 比较;...
分类:编程语言   时间:2014-06-17 21:38:48    阅读次数:327
[C#]对于INI操作代码
using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Reflection;using System.Runtime.InteropServices;using System.Te...
分类:其他好文   时间:2014-06-17 20:49:42    阅读次数:281
简单的加载 ztree
HTML页面: .csusing System;using System.Collections.Generic;using System.Data;using System.Linq;usin...
分类:其他好文   时间:2014-06-17 20:44:56    阅读次数:204
异常记录(写txt日志文件)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace WebBuild_CRM.Common{ public class Excep...
分类:其他好文   时间:2014-06-17 19:57:12    阅读次数:250
UML的基本图(三)
?? An artifact diagram shows the physical constituents of a system on the computer. Artifacts include files, databases, and similar physical collections of bits. Artifacts are often used in conjunct...
分类:其他好文   时间:2014-06-17 16:11:28    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!