码迷,mamicode.com
首页 > 其他好文
显示实现接口和隐式实现接口区别
先定义一个接口:public Interface ICategory{string GetName();}接着实现上面定义的接口:public class Category:ICategory{public string GetName(){return name;}}以上的方式是隐式的实现接口(我...
分类:其他好文   时间:2015-09-22 12:48:37    阅读次数:137
ibatis 基类生成
using IBatisNet.Common.Utilities;using IBatisNet.DataMapper;using IBatisNet.DataMapper.Configuration;using System;using System.Collections.Generic;usi...
分类:其他好文   时间:2015-09-22 12:50:16    阅读次数:233
Guava学习笔记:Range
Guava学习笔记:Range转载:http://www.cnblogs.com/peida/p/Guava_Range.html在Guava中新增了一个新的类型Range,从名字就可以了解到,这个是和区间有关的数据结构。从Google官方文档可以得到定义:Range定义了连续跨度的范围边界,这个连...
分类:其他好文   时间:2015-09-22 12:49:19    阅读次数:229
【leetcode】Move Zeroes
Move Zeroes题目:Given an array nums, write a function to move all 0‘s to the end of it while maintaining the relative order of the non-zero elements.For...
分类:其他好文   时间:2015-09-22 12:46:47    阅读次数:195
万能的搜索3
大家小的时候都玩过迷宫的游戏,迷宫里面有障碍物有一个出口,和一个入口,通过入口,走到出口,你就找到一条路线。 package 中介者设计模式;import java.util.Scanner;public class MainMain { private static int col = 0...
分类:其他好文   时间:2015-09-22 12:45:15    阅读次数:186
HDU 1495 非常可乐
Description:大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S...
分类:其他好文   时间:2015-09-22 12:46:05    阅读次数:259
AtomicInteger 源码 及部分问题
AtomicInteger volatile unsafe
分类:其他好文   时间:2015-09-22 12:46:44    阅读次数:208
闪电似的
string x = string.Empty; string[] lines = System.IO.File.ReadAllLines(@"C:\Documents and Settings\Administrator\桌面\2.txt",Encoding.Default); if (line....
分类:其他好文   时间:2015-09-22 12:46:40    阅读次数:147
activiti整合开发实例总结
参考手册:http://www.mossle.com/docs/activiti/一、applicationContext.xml中引入activiti相关配置的xml文件 二、activiti-core-context.xml ...
分类:其他好文   时间:2015-09-22 12:47:12    阅读次数:2523
Quartz3-时间表达式即cronTrigger表达式
Quartz3-时间表达式即cronTrigger表达式cronTrigger表达式含义:<!--0001*?#1.秒(0-59)#2.分钟(0-59)#3.小时(0-23)#4.月份中的日期(1-31)#5.月份(1-12或SUN-DEC)#6.星期中的日期(1-7或SUN-SAT)#7.年份(1...
分类:其他好文   时间:2015-09-22 12:46:19    阅读次数:157
HDOJ 4901 The Romantic Hero
DP....扫两次合并The Romantic HeroTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 547Accepted Submissi...
分类:其他好文   时间:2015-09-22 12:44:46    阅读次数:205
编辑距离
#include #include #include #include using namespace std;int edit(string str1, string str2){ int res; int n1 = str1.size(); int n2 = str2.size...
分类:其他好文   时间:2015-09-22 12:43:04    阅读次数:202
类的构造和析构
import Foundationclass TV{ var name:String="chuangwei" init(){} init(name:String){ self.name=name } deinit{ name="" }}var myTV=TV(name:"ha...
分类:其他好文   时间:2015-09-22 12:44:33    阅读次数:173
推箱子
分类:其他好文   时间:2015-09-22 12:43:43    阅读次数:131
wcf 代理配置
--> --> --> --> --> ...
分类:其他好文   时间:2015-09-22 12:43:39    阅读次数:165
关卡得分(if 嵌套for)与(for嵌套if)
分类:其他好文   时间:2015-09-22 12:41:39    阅读次数:144
10个数的最大值,最小值,平均值
在求最大值,最小值,平均值时:由于我们不知道最大有多大,最小有多小;所以比较时把第一个数赋值最大或最小;
分类:其他好文   时间:2015-09-22 12:41:07    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!