码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
C# get set方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace GetSetTest{ class A { ...
分类:其他好文   时间:2014-05-10 07:39:24    阅读次数:220
C# 索引器
使用索引器的目的是为了能够像数组一样访问类中的数组型的对象。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace...
分类:其他好文   时间:2014-05-10 05:43:44    阅读次数:218
#include<algorithm>
1. int cmp(const void *x,const void *y) {return *(int*)y-*(int*)x;}//非增序 qsort(a,n,sizeof(a[0]),cmp);//参数分别为(首位置,个数,大小,比较函数)(后续更新)2.int num=unique(a,....
分类:其他好文   时间:2014-05-10 05:29:43    阅读次数:284
模板方法模式
参考资料:《大话设计模式》//模板方法模式--处理问题的步骤相同,但步骤的实现不同using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ds_templatemethod...
分类:其他好文   时间:2014-05-10 05:19:04    阅读次数:322
简单工厂模式与Strategy模式
参考资料:《大话设计模式》简单工厂模式://////简单工厂模式实验,2014.05.07---通过工厂类实例化对象///using System;using System.Collections.Generic;using System.Linq;using System.Text;namespa...
分类:其他好文   时间:2014-05-10 05:16:31    阅读次数:332
代理模式(Proxy)
参考资料《大话设计模式》using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ds_proxy{ class Program { static ...
分类:其他好文   时间:2014-05-10 05:15:33    阅读次数:290
合并排序算法时间复杂度分析
一、合并已排序的两个数组,依次比较两个数组元素大小,并按大小加入到暂存数组B,最后保存到A:Algorithm: MERGE(A, p, q, r)输入:数组A[p...q]和A[q+1...r],各自按升序排列输出:将A[p...q]和A[q+1...r]合并后的升序排序的新数组01. s←p; ...
分类:其他好文   时间:2014-05-10 02:43:47    阅读次数:549
日期类2
1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6: namespace AkDTH.Common 7: { 8: /// 9: /// 时间字符...
分类:其他好文   时间:2014-05-09 23:29:10    阅读次数:400
[C#]组合框设计windows加减乘除简单计算器应用
组合框使用方法,按照下面图片上提示,设计一个windows应用程序,实现不同运算。 界面设计: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;...
分类:Windows程序   时间:2014-05-09 21:11:23    阅读次数:481
上传文件功能
最近项目上的一个上传文件功能,贴出来大家一起分享下,项目是MVC+EF+LigerUI 来做的页面需要引用这个JS 跟 CSS首先在页面添加Upload.ashx然后代码如下:using System;using System.Collections.Generic;using System.Lin...
分类:其他好文   时间:2014-05-09 19:29:00    阅读次数:453
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!