开始学习模板元编程了
#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
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
什么是?NHibernate?NHibernate是一个面向.NET环境的对象/关系数据库映射工具。对象/关系数据库映射(object/relational mapping,ORM)这个术语表示一种技术,用来把对象模型表示的对象映射到基于SQL的关系模型数据结构中去。
什么是ORM?对象-关系映射(Object/Relation Mapping,简称ORM),是随着面向对象的软件开发方...
分类:
系统相关 时间:
2014-05-07 16:12:20
阅读次数:
325
树的实现
记住上一节树的定义,在定义的基础上,我们用以下的函数创建并操作二叉树:
BinaryTree() 创建一个二叉树实例 getLeftChild() 返回节点的左孩子 getRightChild() 返回节点的右孩子 setRootVal(val) 把val变量值赋给当前节点 getRootVal() 返回当前节点对象。 insertLeft(val) 创建一个新二叉树作为当前...
分类:
编程语言 时间:
2014-05-07 15:58:43
阅读次数:
504
序言如果我们在 Objective C
中向一个对象发送它无法处理的消息,会出现什么情况呢?根据前文《深入浅出Cocoa之消息》的介绍,我们知道发送消息是通过 objc_send(id, SEL,
...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 ca...
分类:
其他好文 时间:
2014-05-07 14:53:24
阅读次数:
562
有近两个月没有练习ACM了,终于在进入5月的时候,决定安排好各种事情,重新把练习算法和数据结构纳入每天必做的事情之中。鉴于上一阶段练习效果,总结出来凡事必“温故而知新,三思而后行”。之前对于ACM的各路招式(算法)抱有极大的好奇心,一口气做了不少的题,熟练度有提升,但思维能力未觉有所提高。究其原因....
分类:
其他好文 时间:
2014-05-07 14:45:25
阅读次数:
262
第一步:
定义接口:
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