□ 重写前 通常这样写: @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
包括:i.任意进制转化为十进制((num=base#number))
【base和number必须一致,是同一种进制】ii.十进制转化为任意进制`echo "obase=进制;值"|bc` 和`echo "值 进制 o
p"|bc` 【这里的值代表十进制数字】iii.任意进制互转;有了i和ii就可以...
分类:
其他好文 时间:
2014-05-07 16:40:14
阅读次数:
272
开始学习模板元编程了
#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
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
序言如果我们在 Objective C
中向一个对象发送它无法处理的消息,会出现什么情况呢?根据前文《深入浅出Cocoa之消息》的介绍,我们知道发送消息是通过 objc_send(id, SEL,
...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 ca...
分类:
其他好文 时间:
2014-05-07 14:53:24
阅读次数:
562
这道题虽然是上一道题的增强,但是反而简单了。可以交易无数次,但是买卖必须成对的出现。
为了简单起见,我用abc三股股票来说明,且忽略掉相等的情况。三个数一共有六种大小关系。注意他们之间的先后顺序是不能乱的。
1. a
2. b
3. a
4. b
5. c
6. c
好的,你已经看出来了,只要当相邻的两个数是后面一个较大时,就之间累计上他们的差,否则,pass。直观一点的表述,只要...
分类:
其他好文 时间:
2014-05-07 12:33:11
阅读次数:
512
第一步:
定义接口:
public interface ICommonDao {
List findCollectionByConditionNoPage(String codition,Object[] params, Map orderby);
}
第二步:
实现接口的类:
Class entityClass = TUtils.getTClass...
分类:
其他好文 时间:
2014-05-07 12:22:08
阅读次数:
277
{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