码迷,mamicode.com
首页 >  
搜索关键字:list sort    ( 66297个结果
重写Html.DropDownList和Html.DropDownListFor的name属性
□ 重写前 通常这样写: @Html.DropDownListFor(m => m.DelFlag,(List □ 重写后 重写name属性: @Html.DropDownListFor(m => m.DelFlag,(List 注意: 如果写成new {id="dd",name="myName"}...
分类:Web程序   时间:2014-05-08 13:29:01    阅读次数:532
meta program (1) swap_iter
开始学习模板元编程了 #include #include #include #include #include "boost/assign/list_of.hpp" #include "boost/type_traits/is_const.hpp" #include "boost/type_traits/is_reference.hpp" #include "boost/type_tr...
分类:其他好文   时间:2014-05-07 16:32:27    阅读次数:358
中文分词——正向最大匹配法
中文分词应用很广泛,网上也有很多开源项目。我在这里主要讲一下中文分词里面算法的简单实现,废话不多说了,现在先上代码 package com; import java.util.ArrayList; import java.util.List; public class Segmentation1 { private List dictionary = new ArrayList(); ...
分类:其他好文   时间:2014-05-07 16:30:27    阅读次数:317
codechef Chef and The Right Triangles 题解
Chef and The Right Triangles The Chef is given a list of N triangles. Each triangle is identfied by the coordinates of its three corners in the 2-D cartesian plane. His job is to figure out how m...
分类:其他好文   时间:2014-05-07 16:28:35    阅读次数:314
插入排序
public class Sort { static void insertSort(int a[], int n) { for (int i = 1; i < n; i++) { if (a[i] = 0 && a[k] > temp) { ...
分类:其他好文   时间:2014-05-07 16:15:39    阅读次数:225
深入浅出Cocoa之消息(二)-详解动态方法决议(Dynamic Method Resolution) 【转】
序言如果我们在 Objective C 中向一个对象发送它无法处理的消息,会出现什么情况呢?根据前文《深入浅出Cocoa之消息》的介绍,我们知道发送消息是通过 objc_send(id, SEL, ...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 ca...
分类:其他好文   时间:2014-05-07 14:53:24    阅读次数:562
实现按条件查询
第一步: 定义接口: public interface ICommonDao {  List findCollectionByConditionNoPage(String codition,Object[] params, Map orderby); } 第二步: 实现接口的类: Class entityClass = TUtils.getTClass...
分类:其他好文   时间:2014-05-07 12:22:08    阅读次数:277
ShellSort uva
关于list容器的使用。...
分类:其他好文   时间:2014-05-07 12:12:15    阅读次数:345
Java实现算法归并排序(MergeSort)
归并排序    归并排序 (merge sort) 是一类与插入排序、交换排序、选择排序不同的另一种排序方法。归并的含义是将两个或两个以上的有序表合并成一个新的有序表。归并排序有多路归并排序、两路归并排序 , 可用于内排序,也可以用于外排序。这里仅对内排序的两路归并方法进行讨论。  1.两路归并排序算法思路 ①把 n 个记录看成 n 个长度为1的有序子表; ②进行两两归并使记录关键字有序,...
分类:编程语言   时间:2014-05-07 11:47:08    阅读次数:347
怎么在首页调用dede子栏目
{dede:channelartlisttypeid=‘栏目ID‘row=‘条数‘}<divclass="list"><li><ahref="{dede:fieldname=‘typeurl‘/}">{dede:fieldname=‘typename‘/}</a></li><ul>{dede:sqlsql=‘Select*fromdede_arctypewherereid=~id~ORDERBYidlimit0,7‘}<li..
分类:其他好文   时间:2014-05-07 11:37:32    阅读次数:422
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!