#includeusing namespace std;#include#includeint main(){int a,b,ans,res,c1=0,c2=0,c3=0,c4=0,t,i,N;int p;srand((unsigned)time(NULL));while(1){cout>p;swi...
分类:
其他好文 时间:
2015-04-01 23:40:30
阅读次数:
194
用例代码如下:数据库DDL语句1,CAT表 1 create table CAT 2 ( 3 id VARCHAR2(32 CHAR) not null, 4 create_time TIMESTAMP(6), 5 update_time TIMESTAMP(6), 6...
分类:
Web程序 时间:
2015-04-01 23:40:22
阅读次数:
355
注明:该文转载自网络博客,但由于是从Onenote笔记中直接发布,之前记笔记的时候未注明原作,望见谅HashMap是基于哈希表的Map接口的非同步实现。此实现提供所有可选的映射操作,并允许使用null值和null键。此类不保证映射的顺序,特别是它不保证该顺序恒久不变。 在java编程语言中,最基本的...
分类:
其他好文 时间:
2015-04-01 23:36:00
阅读次数:
218
用例代码如下:数据库DDL语句1,CAT表 1 create table CAT 2 ( 3 id VARCHAR2(32 CHAR) not null, 4 create_time TIMESTAMP(6), 5 update_time TIMESTAMP(6), 6...
分类:
Web程序 时间:
2015-04-01 23:14:15
阅读次数:
293
1.单例模式synchronized public static ImCache getInstance (Context context) {
if (sInstance == null) {
sInstance = new ImCache(context);
}
return sInstance;
}
优点
由于单例模式在内存中...
分类:
其他好文 时间:
2015-04-01 21:55:06
阅读次数:
181
#include#include#includeusing namespace std;void main(){ int begin=0; //子序列的开头 int end=0; //子序列的结尾 int newsum=0; //当前子序列最大值 srand((unsigned)time(NULL)...
分类:
其他好文 时间:
2015-04-01 21:33:15
阅读次数:
113
61.Redis的key要判断null的情况。 如果key为null,报错。 public Boolean exists(String key) { if(StringUtils.isBlank(key)){ return false; } return loginRedisTemplate.hasKey(key); } 另外原因分析,看了错误信息,发现是 org.spri...
分类:
其他好文 时间:
2015-04-01 20:07:03
阅读次数:
119
一对一(One-to-one),外键关联用例代码如下:数据库DDL语句1,CAT表 1 create table CAT 2 ( 3 id VARCHAR2(32 CHAR) not null, 4 create_time TIMESTAMP(6), 5 update_...
分类:
Web程序 时间:
2015-04-01 19:47:58
阅读次数:
290
1.判断undefined:Js代码 vartmp=undefined;if(typeof(tmp)=="undefined"){alert("undefined");}说明:typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"fun...
分类:
Web程序 时间:
2015-04-01 19:44:29
阅读次数:
129
public class SingleTon { private static SingleTon singleTon = null; public SingleTon() { // TODO Auto-generated constructor stub } ...
分类:
其他好文 时间:
2015-04-01 19:38:11
阅读次数:
201